Suppose we have a very simple data contract:
We have an AJAX-enabled WCF service, that has a method that accepts an ienumerable of our data contract:
The other solution is to write your objects in the JSON format immediately, but that is not any fun thing to do. When you are starting to build complex collection with multiple object levels, writing the json format manually is almost impossible. JSON.stringify just does the work for you!