Click here to Skip to main content
14,696,793 members
Home » Discussions » ASP.NET
   

ASP.NET

 
QuestionDashboard Build in .net with Bootstrap Pin
RekhaDhankhar9-Feb-18 7:13
MemberRekhaDhankhar9-Feb-18 7:13 
AnswerRe: Dashboard Build in .net with Bootstrap Pin
Vinod Jangle9-Feb-18 13:33
MemberVinod Jangle9-Feb-18 13:33 
QuestionAspects Every ASP.Net Developers Must Know Pin
Priyanka Kale9-Feb-18 0:40
MemberPriyanka Kale9-Feb-18 0:40 
AnswerRe: Aspects Every ASP.Net Developers Must Know Pin
Vinod Jangle11-Feb-18 4:28
MemberVinod Jangle11-Feb-18 4:28 
GeneralRe: Aspects Every ASP.Net Developers Must Know Pin
Priyanka Kale14-Mar-18 21:00
MemberPriyanka Kale14-Mar-18 21:00 
QuestionASP.Net MVC application is saying build failed but doesn't show me any error but warns "Found conflicts between different versions of the same dependent assembly" Pin
indian1438-Feb-18 14:24
Memberindian1438-Feb-18 14:24 
QuestionShopping site based on sql data? Pin
JoeJack03308-Feb-18 11:01
MemberJoeJack03308-Feb-18 11:01 
AnswerRe: Shopping site based on sql data? Pin
David Mujica9-Feb-18 4:53
MemberDavid Mujica9-Feb-18 4:53 
QuestionEF: How to minimize search code Pin
Mou_kol8-Feb-18 2:53
MemberMou_kol8-Feb-18 2:53 
QuestionASP.NET Core to IIS Pin
Priyanka Kale8-Feb-18 0:25
MemberPriyanka Kale8-Feb-18 0:25 
AnswerRe: ASP.NET Core to IIS Pin
Vinod Jangle9-Feb-18 13:35
MemberVinod Jangle9-Feb-18 13:35 
QuestionParsing JSON Pin
A_Griffin7-Feb-18 23:40
MemberA_Griffin7-Feb-18 23:40 
AnswerRe: Parsing JSON Pin
F-ES Sitecore8-Feb-18 0:57
mveF-ES Sitecore8-Feb-18 0:57 
You can parse the json using the newtonsoft classes

JObject jo = (JObject)JsonConvert.DeserializeObject(json);

foreach (JProperty p in jo.Properties())
{
    string pname = p.Name; // "0", "1", "2"
    string p1 = p.Value["Property1"].Value<string>();
    string p2 = p.Value["Property2"].Value<string>();
}


or you can map the properties to your own object

JObject jo = (JObject)JsonConvert.DeserializeObject(json);

foreach (JProperty p in jo.Properties())
{
    string pname = p.Name;
    clsThings t = JsonConvert.DeserializeObject<clsThings>(p.Value.ToString());
}


It's csharp but should be fairly easy to convert. "json" contains your json string.
GeneralRe: Parsing JSON Pin
A_Griffin8-Feb-18 1:08
MemberA_Griffin8-Feb-18 1:08 
AnswerRe: Parsing JSON Pin
Richard Deeming8-Feb-18 2:01
mveRichard Deeming8-Feb-18 2:01 
QuestionEntityFramework: Can we minimize sorting code Pin
Mou_kol6-Feb-18 3:46
MemberMou_kol6-Feb-18 3:46 
AnswerRe: EntityFramework: Can we minimize sorting code Pin
Richard Deeming6-Feb-18 4:03
mveRichard Deeming6-Feb-18 4:03 
GeneralRe: EntityFramework: Can we minimize sorting code Pin
Mou_kol7-Feb-18 21:40
MemberMou_kol7-Feb-18 21:40 
GeneralRe: EntityFramework: Can we minimize sorting code Pin
Richard Deeming8-Feb-18 2:39
mveRichard Deeming8-Feb-18 2:39 
GeneralRe: EntityFramework: Can we minimize sorting code Pin
Mou_kol8-Feb-18 2:52
MemberMou_kol8-Feb-18 2:52 
GeneralRe: EntityFramework: Can we minimize sorting code Pin
Richard Deeming8-Feb-18 2:58
mveRichard Deeming8-Feb-18 2:58 
QuestionAny free health monitoring dashboard exist Pin
Mou_kol5-Feb-18 23:00
MemberMou_kol5-Feb-18 23:00 
AnswerRe: Any free health monitoring dashboard exist Pin
Richard MacCutchan6-Feb-18 0:29
mveRichard MacCutchan6-Feb-18 0:29 
QuestionSending a collection of objects to the view in MVC Pin
Davstr5-Feb-18 5:42
MemberDavstr5-Feb-18 5:42 
AnswerRe: Sending a collection of objects to the view in MVC Pin
Richard Deeming5-Feb-18 9:25
mveRichard Deeming5-Feb-18 9:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.