{"action":"created","issue":{"url":"https://api.github.com/repos/jayway/JsonPath/issues/105","labels_url":"https://api.github.com/repos/jayway/JsonPath/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/jayway/JsonPath/issues/105/comments","events_url":"https://api.github.com/repos/jayway/JsonPath/issues/105/events","html_url":"https://github.com/jayway/JsonPath/issues/105","id":95161477,"number":105,"title":"Make use of JSR 353 (JSON Processing) API","user":{"login":"luolong","id":133101,"avatar_url":"https://avatars.githubusercontent.com/u/133101?v=3","gravatar_id":"","url":"https://api.github.com/users/luolong","html_url":"https://github.com/luolong","followers_url":"https://api.github.com/users/luolong/followers","following_url":"https://api.github.com/users/luolong/following{/other_user}","gists_url":"https://api.github.com/users/luolong/gists{/gist_id}","starred_url":"https://api.github.com/users/luolong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luolong/subscriptions","organizations_url":"https://api.github.com/users/luolong/orgs","repos_url":"https://api.github.com/users/luolong/repos","events_url":"https://api.github.com/users/luolong/events{/privacy}","received_events_url":"https://api.github.com/users/luolong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-15T10:42:33Z","updated_at":"2015-08-27T12:21:26Z","closed_at":null,"body":"Hey,\r\n\r\nI wonder if you are aware of [JSR 353 API] (https://json-processing-spec.java.net/nonav/releases/1.0/pfd-draft/javadocs/index.html) that is apparently part of [JavaEE 7 specification] (https://docs.oracle.com/javaee/7/tutorial/jsonp002.htm).\r\n\r\nLooking around in the source at least I could not see any obvious references to that."},"comment":{"url":"https://api.github.com/repos/jayway/JsonPath/issues/comments/135405432","html_url":"https://github.com/jayway/JsonPath/issues/105#issuecomment-135405432","issue_url":"https://api.github.com/repos/jayway/JsonPath/issues/105","id":135405432,"user":{"login":"Langtonm","id":4903329,"avatar_url":"https://avatars.githubusercontent.com/u/4903329?v=3","gravatar_id":"","url":"https://api.github.com/users/Langtonm","html_url":"https://github.com/Langtonm","followers_url":"https://api.github.com/users/Langtonm/followers","following_url":"https://api.github.com/users/Langtonm/following{/other_user}","gists_url":"https://api.github.com/users/Langtonm/gists{/gist_id}","starred_url":"https://api.github.com/users/Langtonm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Langtonm/subscriptions","organizations_url":"https://api.github.com/users/Langtonm/orgs","repos_url":"https://api.github.com/users/Langtonm/repos","events_url":"https://api.github.com/users/Langtonm/events{/privacy}","received_events_url":"https://api.github.com/users/Langtonm/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T12:21:26Z","updated_at":"2015-08-27T12:21:26Z","body":"This would be an excellent feature as it is not currently possible to correctly process javax.json.JsonValue items via JsonPath.read.\r\n\r\ne.g.\r\n\r\n\r\n    {\r\n  \r\n        String json = ....;\r\n\r\n        System.out.println(\"Process Raw String (works)\");\r\n        System.out.println( JsonPath.read(json, \"$.words\"));\r\n        System.out.println( JsonPath.read(json, \"$.words[*].[?(@.word == 'and')]\"));\r\n        \r\n        \r\n        System.out.println(\"Process Json Object (fails due to 'DEBUG com.jayway.jsonpath.Criteria - Can not compare a java.lang.String with a org.glassfish.json.JsonStringImpl)'\");\r\n        JsonObject jsonObj = readString(json);\r\n        \r\n        System.out.println( JsonPath.read(jsonObj, \"$.words\"));\r\n        System.out.println( JsonPath.read(jsonObj, \"$.words[*].[?(@.word == 'and')]\"));\r\n    }\r\n    \r\n\tprivate static JsonObject readString(String jsonString) {\r\n\t\tif (jsonString == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tJsonReader rdr = Json.createReader(new StringReader(jsonString));\r\n\t\treturn rdr.readObject();\r\n\t}"}}