Skip to content
New issue

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

JSONPath remove 方法不支持数组中的布尔表达式 #2791

Closed
cn-src opened this issue Sep 29, 2019 · 0 comments
Closed

JSONPath remove 方法不支持数组中的布尔表达式 #2791

cn-src opened this issue Sep 29, 2019 · 0 comments
Milestone

Comments

@cn-src
Copy link

cn-src commented Sep 29, 2019

无法使用数组布尔表达式删除数据
例如:

JSONPath.remove(jsonObject, "$.dependencies.values[?(@.name=='Demo')]");
java.lang.UnsupportedOperationException: null
	at com.alibaba.fastjson.JSONPath.remove(JSONPath.java:357) ~[fastjson-1.2.61.jar:na]
	at com.alibaba.fastjson.JSONPath.remove(JSONPath.java:503) ~[fastjson-1.2.61.jar:na]
@wenshao wenshao closed this as completed in 0d1ba1b Oct 3, 2019
@wenshao wenshao added this to the 1.2.62 milestone Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants