c# - How can I deserialize a Json file with a header and details in Xamarin.Forms? -


{     "id": "007",     "name": "james bond",     "missions": [{         "year": "2006",         "title": "casino royale"     },     {         "year": "2008",         "title": "quantum of solace"     },     {         "year": "2012",         "title": "skyfall"     },     {         "year": "2015",         "title": "spectre"     }] } 

have @ this: https://components.xamarin.com/view/json.net

with libary easy

you can deserialize:

jamesbondobject oresult = (jamesbondobject) jsonconvert.deserializeobject(sresponse, typeof( jamesbondobject ) );   class jamesbondobject {     int id;     string name;     mission[] missions; }  class mission {     int year;     string title; } 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -