One of my blog readers told me it was 2014
He laughed at the fact that I was still using XML
So within 30 minutes I was writing JSON to disk, instead of XML
It was incredibly easy to do
It is much easier than you might expect
I eliminated an un-needed class and persisted my data into a smaller payload
In Visual Studio use the Tools menu
Figure 1: Adding a NuGet Package - Json.Net
This is the code that I eliminated to Json-ify it
After adding the Json.NET package, I just changed the code to look like this
Now is the time to go to your code and bring it into 2014.
wow. that was a fast change! awesome :)
All this json thing is nice and all, but good luck if you reuse the same object in multiple places of your hiearchy: only XML and DataContract(IsReference=true) will do the trick correctly.
But Json is perfect for simpler things.
Now we need integration of JSON with MsSQL Engine as a new type ;-).
@tec - this can be done with JSON, too.