json字符串如何转换位json对象
如何把字符串:{"log_id": 3277159731822821649, "words_result_num": 7,
"words_result": [{"location": {"width": 121, "top": 125, "left": 247, "height": 39},
"words": "銊?}, {"location": {"width": 122, "top": 122, "left": 765, "height": 41}, "words": "銊?},
{"location": {"width": 27, "top": 495, "left": 57, "height": 110}, "words": "涓庣敺"},
{"location": {"width": 124, "top": 647, "left": 244, "height": 42}, "words": "璇锋姇甯?},
{"location": {"width": 184, "top": 749, "left": 341, "height": 43}, "words": "鍒囨崲姝﹀櫒"},
{"location": {"width": 94, "top": 797, "left": 934, "height": 30}, "words": "100000"},
{"location": {"width": 45, "top": 798, "left": 1500, "height": 27}, "words": "100"}]}
转换位下面这种模式
{
"log_id": 5211838881360596625,
"words_result_num": 7,
"words_result": [
{
"location": {
"width": 121,
"top": 125,
"height": 39,
"left": 247
},
"words": "ㄓ"
},
{
"location": {
"width": 122,
"top": 122,
"height": 41,
"left": 765
},
"words": "ㄓ"
},
{
"location": {
"width": 27,
"top": 495,
"height": 110,
"left": 57
},
"words": "与男"
},
{
"location": {
"width": 124,
"top": 647,
"height": 42,
"left": 244
},
"words": "你好"
},
{
"location": {
"width": 184,
"top": 749,
"height": 43,
"left": 341
},
"words": "切换武器"
},
{
"location": {
"width": 94,
"top": 797,
"height": 30,
"left": 934
},
"words": "100000"
},
{
"location": {
"width": 45,
"top": 798,
"height": 27,
"left": 1500
},
"words": "100"
}
]
}
请求大神帮助,我处理的时候老是出错,求源码