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

896Re: [json] Re: json2.js

Expand Messages
  • Gustavo Munoz
    Oct 31, 2007
    • 0 Attachment
      Great job, Douglas.

      There is a typo in the initial multiline comment at line 57, it says
      JON.parse

      On 10/30/07, Ric Johnson <RicJohnsonIII@...> wrote:
      >
      > Thank you for implmenting this. this make the code so much cleaner.
      >
      > Now if we can just get the Prototype library to stop overloading
      > Object....
      >
      > --- In json@yahoogroups.com <json%40yahoogroups.com>, "Douglas Crockford"
      > <douglas@...> wrote:
      > >
      > > The original version of json.js had a JSON object containing
      > stringify
      > > and parse methods. When the opportunity to add JSON support to the
      > > next proposed standard for ECMAScript, the methods changed to
      > toString
      > > and parseJSON.
      > >
      > > In retrospect, I think the original form was better. I have posted
      > > json2.js which has JSON.stringify (which looks for the presence of
      > a
      > > toJSON method in the objects it stringifies), and JSON.parse (which
      > > can still accept a filter function).
      > >
      > > http://www.JSON.org/json2.js
      > >
      >
      >
      >



      --
      Blog: http://justavo.blogsome.com/


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