Java Json转Map/List
Json格式
将格式如下的Json,转化成Map
1
2
3
4
5 {
“key1":"value1",
“key2":"value2",
“key3":"value3"
}将格式如下的Json,转化成List
1
2
3
4 {
"key":{"key01":"value01","key02":"value02","key03":"value03"},
"key1":{"key01":"value01","key02":"value02","key03":"value03"}
}
code
直接撸代码如下:
1 | /** |