All the libraries you need are built into .NET and can be done in the Immediate Prompt in Visual Studio.
Save the Object to disk
string json = new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(myObject);System.IO.File.WriteAllText($@"c:\dev\{nameof(myObject)}.json", json);
Read the Object from disk
string json = System.IO.File.ReadAllText(@"c:\dev\myObject.json");var company = new System.Web.Script.Serialization.JavaScriptSerializer().Deserialize<MyClass>(json);
The caveat to this is that you will need the MyClass available when you bring it back to life.You can also pass Object instead of MyClass if you don't have it.
5 comments:
I was carried away when I read
http://www.hazardonlinecon.com/
http://www.internetowaonline.com/
http://www.najlepszastrona.com/
http://www.hazardoweonline.com/
http://www.aayetiayokele.com/
That cover is Amazing
http://www.darajulolori.com/
http://www.aleapullumreliable.com/
http://www.doragonbetto.net/
http://www.muchinahito.net/
http://www.rakkibeta.net/
Thank you for hosting
http://www.graniewpilki.com/
http://www.pokagyanburusaito.net/
http://www.daftarnegaramiskin.com/
https://www.ceritamitosdunia.web.id/
http://www.daftaranjingpopuler.web.id/
NICE for giving a chance to share ideas
http://www.balengrup.com/
http://www.gosotrailers.com/
http://www.adbuildding.com/
http://www.ascentoysrs.com/
http://www.baybackwindow.com/
thanks for the quality details
http://www.stovcdik.com/
http://www.privacylzone.com/
http://www.postgolden.com/
http://www.pregolden.com/
http://www.yandestravel.com/
Post a Comment