I build the json object in a servlet, then I send it back to the client via ajax. Once back at the browser, I want to get the values. I did search high and low, but I could not find any code that did not throw an error.
Here is the example output transmitted back the client. I do set the application type in the response as 'application\json". I used Google's Simple JSON library.
The JSON being returned from the server must be valid. If it's not, the server is the place to fix it.