A dictionary is displays as [Object Object].
If you want, you can try this code:
var json = eval('["e",{"pluribus":"unum"}]');
alert(json[0]);
for (key in json[1]) {
alert(key + ": " + json[1][key]);
}
2009/4/17 DiveIntoGAE <[email protected]>
>
> server side:
>
> result = '["e",{"pluribus":"unum"}]'
> self.response.out.write(simplejson.dumps(result))
>
>
> guest side:
> var jsonResponse = JSON.parse(response);
> alert(jsonResponse);
>
>
> the result turns out to be:
> e,[Object Object]
>
>
> why?
>
> how can i get the data in response?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---