Hi Greg,
I think that one problem could be also wrong content-type.
Currently, Firebug is trying to parse only following content-types:
"application/json"
"text/plain"
"text/x-json"
"text/x-json"

There is also a bug for JSON tab enhancements here:
http://code.google.com/p/fbug/issues/detail?id=1398

Anyway, do you have an online test-case that I could try?

> 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.
https://developer.mozilla.org/en/FirebugInternals
http://www.softwareishard.com/blog/category/firebug-tutorial/

If you want to see how the parsing is done now, see jsonViewer.js
file
within Firebug.

Honza


On 2 Bře, 02:20, Greg Tidwell <[email protected]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to