c# - Dynamically reading .json file with multiple objects -
an application providing me .json file contains unknown amount of objects. on top of that, objects content changes quite bit.
here example of json file:
{ "avrunning":{ "description":"symantec antivirus service", "status":true }, "correctou":{ "description":"server in correct ou", "status":true }, "roleadgroups":{ "result":true, "group":"server-admin" }, "defaultadgroups":[ { "result":true, "group":"domain admins" }, { "result":true, "group":"server-admins" }, { "result":true, "group":"servername-admins" } ] } this example of json file. contain many more objects, unknown amount of content within it.
my question all, how serialize json object in c# once read content in 1 gigantic string?
also, may overcomplicationg process here. once read in, want pass data view. if can't done in c#, easier in jquery? or should done there in first place? file reading in local file, can't access data directly in jquery.
i know json.net possible tool, have read, not sure how create objects dynamically.
jquery makes pretty simple (just jquery.parsejson(<your string>);).
i imagine json.net has parse function well, haven't used library, couldn't sure!
Comments
Post a Comment