![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
json
apolloKwong
这个作者很懒,什么都没留下…
展开
-
java解析多层嵌套json字符串
java分别解析下面两个json字符串package jansonDemo;import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONArray;import com.alibaba.fastjson.JSONObject;public class TestJSON { /** * JSON实际上也是键值对("key":"value") * key 必须是字符串,value 可以是合法的 J翻译 2020-12-03 14:15:24 · 911 阅读 · 0 评论 -
JAVA中将一个json形式的字符串转为json对象或类对象
假设有一个json字符串形式如下:jsonObject = { "name":"apollokwong" "phone":"13260593075" "honor-award": [ { "school":"primary-school","award":[ "a", "b", "c"] } { "school":"middle-school","award":[ "A", "B", "C"] }原创 2020-12-15 16:42:55 · 4717 阅读 · 0 评论