asp.net - Json Structure Issue -


a third party api returning json in following format

{ "group1": {     "colour": "blue",     "name": "dave" }, "group2": {     "colour": "red",     "name": "karen" }, "group3": {     "colour": "green",     "name": "ryan"  } } 

i'm finding outer 'groupx' identifier problematic when attempting deserialize json using json.net.

does know best parse json in format?

{     "employees": [         { "first-name":"john" , "last-name":"doe" },         { "first-name":"anna" , "last-name":"smith" },         { "first-name":"peter" , "last-name":"jones" }     ] } 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -