Question : json string

hello , I'm sending this string to jsp from my servlet
response= {valid: true, nombre:CARLA FORNES TORRES,edad:8,escuela:Escuela Jose De Choudens,distrito:JUANA DIAZ,publica:PUBLICA}

response.getOutputStream().println(response);


but for some reason when dojo receive it, said that there is an error
missing } after property list

[Break on this error] ({valid: true, nombre:CARLA FORNES TOR...distrito:JUANA DIAZ, publica:PUBLICA}\n

I hit the servlet and it return it fine, but fire fox still giving me that message

Answer : json string

So your line of code :
1:
response = "{ \"valid\":true, \"nombre\":\"CARLA FORNES TORRES\", \"edad\":8, \"escuela\":\"Escuela Jose De Choudens\", \"distrito\":\"JUANA DIAZ\", \"publica\":\"PUBLICA\" }";
Random Solutions  
 
programming4us programming4us