我想在C#中获取json解析数据。 [英] I want get json parse data in C#.

查看:921
本文介绍了我想在C#中获取json解析数据。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

This is my JObject.Parse string.

{
"topic": {
"account_id": 190884,
"created_at": "2015-01-31T16:35:59+05:00",
"delta": true,
"forum_id": 5000225377,
"hits": 0,
"id": 5000025527,
"import_id": null,
"last_post_id": 5000040596,
"locked": false,
"merged_topic_id": null,
"posts_count": 0,
"published": true,
"replied_at": "2015-01-31T16:35:59+05:00",
"replied_by": 5005399997,
"stamp_type": null,
"sticky": 0,
"title": "I want use API of Freshdesk.",
"updated_at": "2015-01-31T16:35:59+05:00",
"user_id": 5005399997,
"user_votes": 0,
"posts": [
{
"account_id": 190884,
"answer": false,
"body": " I want to use API of Freshdesk to get forums of Freshdesk. I want to access users and posts from different Forums and show that data in my Application. I want to develop C# console Application.  Anyone please help me. \r\n",
"body_html": "<p>I want to use API of Freshdesk to get forums of Freshdesk. I want to access users and posts from different Forums and show that data in my Application. I want to develop C# console Application. </p><p>Anyone please help me.</p>\r\n",
"created_at": "2015-01-31T16:35:59+05:00",
"forum_id": 5000225377,
"id": 5000040596,
"import_id": null,
"published": true,
"spam": null,
"topic_id": 5000025527,
"trash": false,
"updated_at": "2015-01-31T16:35:59+05:00",
"user_id": 5005399997
}
]
}
}

I want to get values of (posts) from this string in C#. Anyone can help me how i can get values of posts from this string.

推荐答案

json.net怎么样? http://www.newtonsoft.com/json [ ^ ]



祝你好运!
How about json.net? http://www.newtonsoft.com/json[^]

Good luck!


这篇关于我想在C#中获取json解析数据。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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