case:{"key1":"value1", "key2":[null] }or{"key1":"value1", "key2":[null,"value2"] }JSONObject jsonBody = JSONObject.parseObject(str) JSONPath.eval(jsonBody , "$..key2")就会抛出异常~ 在version:1.2.60 会抛 npe在新的版本,会抛出其它异常
{"key1":"value1", "key2":[null] }
{"key1":"value1", "key2":[null,"value2"] }
JSONObject jsonBody = JSONObject.parseObject(str) JSONPath.eval(jsonBody , "$..key2")
uemypmqf1#
I not found exception in your code
String s = "{\"key1\":\"value1\", \"key2\":[null,\"value2\"] }"; JSONObject jsonBody = JSONObject.parseObject(s); JSONPath.eval(jsonBody, "$..key2");
please give me the code which can throw exception
1条答案
按热度按时间uemypmqf1#
I not found exception in your code
please give me the code which can throw exception