JSON数据重新格式化和修改 [英] JSON Data reformat and modification

查看:111
本文介绍了JSON数据重新格式化和修改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在 [ ^ ]。在该线程中,我使用JQuery .ajax Get通过URL获取JSON数据。在Debugging中,我可以看到获得的数据是[object] [object]而不是真实数据。我需要对数据进行一些重新格式化和一些转换。例如。 JSON数据最初是一个ArrayList。如何才能做到这一点?谢谢,如果你能提供你的建议。

This is the follow-up of my thread at [^]. In that thread, I got JSON data through a URL using JQuery .ajax Get. In Debugging, I can see that the data obtained is [object] [object] rather than the real data. I need to do some reformatting and some conversion on the data. E.g. the JSON data is originally an ArrayList. How can this be done? Thanks if you can provide your advice.

推荐答案

使用JsonConvert.DeserializeObject

参考这些链接

用C#反序列化JSON [ ^ ]



JsonConvert [ ^ ]
use JsonConvert.DeserializeObject
Refer these links
Deserialize JSON with C#[^]

JsonConvert[^]


这篇关于JSON数据重新格式化和修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆