Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

JSONpath无法过滤数组中double以及boolean类型的数据。 #722

Closed
ChenSen5 opened this issue Jul 12, 2016 · 2 comments
Closed

JSONpath无法过滤数组中double以及boolean类型的数据。 #722

ChenSen5 opened this issue Jul 12, 2016 · 2 comments
Milestone

Comments

@ChenSen5
Copy link

    String json ="{\"user\":[{\"amount\":0.11,\"isadmin\":true,\"age\":18},{\"amount\":0.22,\"isadmin\":false,\"age\":28}]}";
    System.out.println(JSONPath.read(json, "$.user"));
    System.out.println(JSONPath.read(json, "$.user[age = 18]"));//可以取到
    System.out.println(JSONPath.read(json, "$.user[isadmin = true]"));//boolean类型的无法过滤,报错
    System.out.println(JSONPath.read(json, "$.user[amount = 0.11]"));//float类型无法过滤,报错
@wenshao
Copy link
Member

wenshao commented Jul 12, 2016

已支持,请等待1.2.14版本

@wenshao wenshao closed this as completed Jul 12, 2016
@ChenSen5
Copy link
Author

预计什么时候会出1.2.14版本

asa1997 pushed a commit to Be-Secure/fastjson that referenced this issue Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants