Not sure about the bug, but is there a reason you can't use the prototype JSON methods?
On Sun, Jan 25, 2009 at 7:30 PM, nlloyds <[email protected]> wrote: > > I'm using this code: > > <script src="http://www.json.org/json2.js"></script> > <script runat="server" src="https://ajax.googleapis.com/ajax/libs/ > prototype/1.6.0.3/prototype.js<https://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js> > "></script> > <script runat="server"> > document.write(JSON.stringify([])); > </script> > > Which will output null with the Prototype script tag. If that tag is > removed, the output is [], as I had expected. I believe the JSON > library checks for at toJSON property on objects, which doesn't > normally exist for Array, but does after Prototype.js augments them. > > Any ideas? > > Thanks, > > Nathan > > > -- Jerod Venema Frozen Mountain Software http://www.frozenmountain.com/ 919-368-5105 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
