You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.NullPointerException
at com.alibaba.fastjson2.JSONPath$NameFilter.apply(JSONPath.java:1129)
at com.alibaba.fastjson2.JSONPath$NameFilter.eval(JSONPath.java:1101)
at com.alibaba.fastjson2.JSONPath$MultiSegmentPath.extract(JSONPath.java:2708)
附加信息
fastjson的jsonpath解析这种结构也存在问题,虽然表现并不一致
The text was updated successfully, but these errors were encountered:
问题描述
使用JSONPath解析表达式时抛出NullPointerException
环境信息
重现步骤
path表达式
$.data[*][?(@.value == 0.28)]
按照api使用抛出npe
期待的正确结果
对比jayway的jsonpath实现,解析结果为
[{"value":0.28,"hb":-0.04}]
相关代码
相关日志输出
Exception in thread "main" java.lang.NullPointerException
at com.alibaba.fastjson2.JSONPath$NameFilter.apply(JSONPath.java:1129)
at com.alibaba.fastjson2.JSONPath$NameFilter.eval(JSONPath.java:1101)
at com.alibaba.fastjson2.JSONPath$MultiSegmentPath.extract(JSONPath.java:2708)
附加信息
fastjson的jsonpath解析这种结构也存在问题,虽然表现并不一致
The text was updated successfully, but these errors were encountered: