在c#中反序列化JSON数据 [英] Deserialize JSON Data in c#

查看:68
本文介绍了在c#中反序列化JSON数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

{ " university":"
{ "76":<
{" name":" Keiser University",
< span style ="white-space:pre"> " school":"Miami","
" ; logo":" \ / images\ / content\ / schools-big \ / logo_keiser.gif",$
" programs" ;:

[

{

" id":" 27463",

< span style ="white-space:pre"> " name":" Accounting of Arts in Accounting",
" school":"Miami","
" degree":" Associate",&br / >
< span style ="white-space:pre"> " online":" 0",
" ; school_id":" 883" b
},

{

" id":" 27465",

" name":"工商管理艺术副学士",zh
" school":"Miami","
" degree":" Associate",

" online":" 0",
" school_id":" 883"

},

{" id":" 27464"," name":"" Accounting of Arts of Accounting"," school ":" Miami"," degree":" Bachelor",""online":" 0"" school_id":" 883"},b
{" id":" 1534075"," name":""工商管理文学士,专注于财务","学校":" ;迈阿密"," degree":"Bachelor","online":"0","school_id":"883"},

{" id":" 1534077"," name":""工商管理文学学士学位,专注于人力资源管理","学校":"迈阿密" ;,"度":"单身汉","在线":"0","school_id":"883"},

{" id":" 1534074"," name":"工商管理文学士与专业人士on in management","school":"" Miami","degree":"Bachelor","online":"0","school_id":"883"},

{" id":" 1534076"," name":""工商管理文学士,专注于市场营销" ,"学校":"迈阿密","学位":"学士","在线":"0","school_id":"883"},

{" id":" 1534073"," name":""工商管理文学士,专注于国际商务"," school":"Miami","degree":"Bachelor","online":"0","school_id":"883"},

{" id":" 27466"," name":" Business A Arts in Business A "管理","学校":"迈阿密","学位":"学士","在线":"0","school_id":"883"},

{" id":" 1546952"," name":""   """ :"迈阿密","度":"单身汉","在线":"0","school_id":"883"}}
],



" description":" ; 30多年来,凯泽大学一直致力于实践职业教育,帮助学生实现个人和职业目标。我们以学生为中心的
方法仍然是Keiser大学使命的基础,并继续吸引更喜欢更个性化学习体验的学生。在凯泽大学,您将找到一个热情友好的社区,教职员工真正致力于为您的成功付出
。我们的小班授课,个性化的关注和一次一班的课程创造了一个积极的学习环境,您可以在这里擅长。无论您的目标是为新职业做准备还是与现有雇主一起晋升,Keiser
大学都是根据您的需求而设计的。 ",


" additional_questions":

[

{

" type":" checkbox",$
" name":" TCPAConsent",
"标签":"选中此框,即表示我同意使用自动化技术通过提供的电话号码(包括无线号码)接收来自Keiser University的电话和/或短信。检查
我们需要此框与您联系,无需参加我们的大学。",
" ; options":" {\" label \":\" TCPA \",\" value \":\" yes \"}"

}

]

  }
 },

  " interest_id":5089989

}

{ "universities":
{"76":
{"name":"Keiser University",
"school":"Miami",
"logo":"\/images\/content\/schools-big\/logo_keiser.gif",
"programs":
[
{
"id":"27463",
"name":"Associate of Arts in Accounting",
"school":"Miami",
"degree":"Associate",
"online":"0",
"school_id":"883"
},
{
"id":"27465",
"name":"Associate of Arts in Business Administration",
"school":"Miami",
"degree":"Associate",
"online":"0",
"school_id":"883"
},
{"id":"27464","name":"Bachelor of Arts in Accounting","school":"Miami","degree":"Bachelor","online":"0","school_id":"883"},
{"id":"1534075","name":"Bachelor of Arts in Business Administration with a concentration in Finance","school":"Miami","degree":"Bachelor","online":"0","school_id":"883"},
{"id":"1534077","name":"Bachelor of Arts in Business Administration with a concentration in Human Resource Management","school":"Miami","degree":"Bachelor","online":"0","school_id":"883"},
{"id":"1534074","name":"Bachelor of Arts in Business Administration with a concentration in Management","school":"Miami","degree":"Bachelor","online":"0","school_id":"883"},
{"id":"1534076","name":"Bachelor of Arts in Business Administration with a concentration in Marketing","school":"Miami","degree":"Bachelor","online":"0","school_id":"883"},
{"id":"1534073","name":"Bachelor of Arts in Business Administration with a concentration in International Business","school":"Miami","degree":"Bachelor","online":"0","school_id":"883"},
{"id":"27466","name":"Bachelor of Arts in Business Administration","school":"Miami","degree":"Bachelor","online":"0","school_id":"883"},
{"id":"1546952","name":"Bachelor of Arts in Psychology - Business Concentration","school":"Miami","degree":"Bachelor","online":"0","school_id":"883"}
],

"description":"For over 30 years, Keiser University has maintained a practical, hands-on approach to career education to help our students achieve their personal and professional goals. Our student-centered approach remains at the foundation of the Keiser University mission and continues to attract students who prefer a more personal learning experience. \r\n\r\nAt Keiser University, you will find a warm, friendly community with faculty and staff truly committed to your success. Our small class sizes, individualized attention, and one-class-at-a-time schedules create a positive learning environment where you can excel. Whether your goal is to prepare for a new career or to advance with your current employer, Keiser University is designed around your needs. ",

"additional_questions":
[
{
"type":"checkbox",
"name":"TCPAConsent",
"label":"By checking this box, I consent to receive phone calls and\/or text messages from Keiser University at the phone number(s) provided, including a wireless number, using automated technology. Checking this box is required for us to contact you, without obligation to attend our University.",
"options":"{\"label\": \"TCPA\",\"value\": \"yes\"}"
}
]
  }
 },
  "interest_id":5089989
}

我想要在c#中没有mvc反序列化上面的json。我尝试了所有方法但失败了。请有人帮忙 

I want to deserialize the above json without mvc in c#. I have tried all the method but failed. Please someone help 

提前感谢  

Thank in Advance  

Pravash

推荐答案

您好Pravash,

Hi Pravash,

刚刚找到了此工具

请告知我们是否有帮助。

Please let me know if it helps.

 

祝你好运,

Fletcher


这篇关于在c#中反序列化JSON数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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