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
Post a Comment