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"></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
--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to