java判断json串是否有某个key值问题

java判断json串是否有某个key值问题

org.json.JSONObject包下的  
json.isNull("key");  
net.sf.json.JSONObject包下的  
json.containsKey("key");  

转载

转自Erris的博客

猜你喜欢

转载自blog.csdn.net/qq_25932039/article/details/78805284