I don't see why JSON shouldn't work in 3.5 - it should be exposed by default, and I'm quite sure we don't (nor even could) do much to disable it even if we wanted...
However, to make your script more backwards compatible, I would use Utils.json instead - that should work fine in the entire 3.* branch -- cers / Christian Sonne On Tue, Jun 16, 2009 at 12:10 PM, Yann Lossouarn <[email protected]>wrote: > > Hello ! > > I tried this code in an uqiquity command, and it seems it doesn't run > ok (error : JSON.stringify is not a function). Is there a structural > reason that prevents me from using the brand new native JSON feature > of Firefox 3.5 Preview or shall I check my code again ? :) > > [code] > var strJSON = encodeURIComponent(JSON.stringify(objJSON)); > new Ajax.Request("ReceiveJSON.jsp", > { > method: "post", > parameters: "strJSON=" + strJSON, > onComplete: Respond > }); > [/code] > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ubiquity-firefox" 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/ubiquity-firefox?hl=en -~----------~----~----~----~------~----~------~--~---
