We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Based on #1965, Fastjson JSONPath.eval 为null,与fastjson2不一致
import com.alibaba.fastjson2.JSONPath; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class Issue1965_222 { @Test public void test() { String temp = "{\n" + " \"code\": \"1003\", \n" + " \"data\": [1, 2], \n" + "}\n"; assertEquals(JSONPath.eval(temp, "$.data"), com.alibaba.fastjson.JSONPath.eval(temp, "$.data")); } }
Expected :[1,2] Actual :null
The text was updated successfully, but these errors were encountered:
fix jsonpath 1.x compatible, for issue #2542
30190df
https://github.com/alibaba/fastjson2/releases/tag/2.0.50 2.0.50已发布,请用新版本
Sorry, something went wrong.
No branches or pull requests
问题描述
Based on #1965, Fastjson JSONPath.eval 为null,与fastjson2不一致
环境信息
重现步骤
期待的正确结果
Expected :[1,2]
Actual :null
The text was updated successfully, but these errors were encountered: