[Dojo-interest] Processing a JSON Response

MattD leanmattie at yahoo.com
Mon Sep 25 08:44:05 MDT 2006


Hmmm...I changed the mimetype from text/json to text/plain, and now it works,
except my response shows all of the data twice.

This is what I am sending back from the server:
myCoolStr =
[{"state":"Kentucky","city":"Lexington"},{"state":"Ohio","city":"Columbus"}]

This is what I am seeing as the response in the client:
response =
[{"state":"Kentucky","city":"Lexington"},{"state":"Ohio","city":"Columbus"}]
[{"state":"Kentucky","city":"Lexington"},{"state":"Ohio","city":"Columbus"}]

I am certain that my response from the server only contains the single
instance...I've attached a debugger and looked.


With Respect,

MattD





Jon Sykes wrote:
> 
> Can you show the bit of the code that handles the "print it out" and  
> some of the context?
> 
> 
> Jon Sykes
> 
> 

-- 
View this message in context: http://www.nabble.com/Processing-a-JSON-Response-tf2319876.html#a6487814
Sent from the Dojo mailing list archive at Nabble.com.



More information about the Dojo-interest mailing list