如何在C#中读取JSON? [英] How to read JSON in C#?

查看:121
本文介绍了如何在C#中读取JSON?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有JSON结构,我需要在c中读取json Zip值。



我尝试过:



JSON结构如

{

billingAccountNumber:449239621,

serviceAddress :{

address1:9337 MIRA VALLE LN,

stateCode:FL,

city: WINTER GARDEN,

zip:34787-,

countryCode:USA,

address2:

},

I have JSON structure, and I need to read json Zip value in c#

What I have tried:

JSON Structure like
{
"billingAccountNumber": "449239621",
"serviceAddress": {
"address1": "9337 MIRA VALLE LN",
"stateCode": "FL",
"city": "WINTER GARDEN",
"zip": "34787-",
"countryCode": "USA",
"address2": ""
},

推荐答案

Json.NET - Newtonsoft [ ^ ]


阅读在C#中使用JSON& VB [ ^ ]文章 - 它详细解释了如何提供和提供有用的工具的链接。
Have a read of Working with JSON in C# & VB[^] article - it explains in great detail how to and provides links to tools that will help.


这篇关于如何在C#中读取JSON?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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