Wait! Don’t throw out your JSON services!
The Situation
You’ve made an investment in exposing some services for client script consumption. Most likely if you did it in the past 2 years, that involved exposing your data as JSON formatted objects.
What is JSON?
It is a text-based, human-readable format for representing simple data structures and associative arrays (called objects)
Perhaps a search service returns a list of people formatted using your custom “Person” object and you’ve been using this in your AJAX applications for a while now. Maybe your JSON data looks something like this:
[{"City":"Queen Creek","FirstName":"Tim","LastName":"Heuer",
"Website":"http:\/\/timheuer.com\/blog\/"},
{"City":"Portland","FirstName":"Scott","LastName":"Hanselman",
"Website":"http:\/\/hanselman.com\/blog\/"},
{"City":"Redmond","FirstName":"Scott","LastName":"Guthrie",
"Website":"http:\/\/weblogs.asp.net\/scottgu"},
{"City":"New Hampshire","FirstName":"Joe","LastName":"Stagner",
"Website":"http:\/\/joestagner.net"},
{"City":"Boston","FirstName":"Jesse","LastName":"Liberty",
"Website":"http:\/\/silverlight.net\/blogs\/jesseliberty"}]
If you squint long enough you can...