Loading ...
Sorry, an error occurred while loading the content.

1462Re: [json] json2 and objects with toJSON function

Expand Messages
  • Andrea Giammarchi
    Feb 15, 2010
    • 0 Attachment
      Weird environment, I would trust more native implementations or json2.js
      itself nullifying the method.

      Array.prototype.toJSON = null;

      Could it be an acceptable work around?

      On Mon, Feb 15, 2010 at 8:09 AM, soren.hilmer <sh@...> wrote:

      > Hi
      > Just ran into this issue with json2 (http://www.json.org/json2.js).
      > In the environment where I'm developing the situation is that plain Objects
      > does not have a toJSON function, but Arrays has one.

      [Non-text portions of this message have been removed]
    • Show all 7 messages in this topic