I'd love to be able to use the JSON Explorer when developing iGoogle
Gadgets rather than littering my code with console.log(eval('(' + resp
+ ')'));
However, Google's proxy alters the actual response into a string that
the json explorer ignores.
Actual Response:
{"obj":{
"first_property":"first_value"
,"second_property":"second_value"
}
What Firebug gets from Google Proxy:
throw 1; < don't be evil' >{ 'http://example.com/api.php?
format=json' : { 'body': '{\x22obj\x22:{\r\n\x22first_property
\x22:\x22first_value\x22\r\n,\x22second_property\x22:\x22second_value
\x22\r\n}', 'rc': 200 } }
To get the json explorer working with iGoogle, I think I need to write
a custom parseJSONString function. This is my first time looking into
the internals of firebug and would appreciate any advice.
Also, anybody know why eval'ing a response like this still works as
normal?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Firebug" 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/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---