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

835RE: [json] Re: json date time objects

Expand Messages
  • Mert Sakarya
    Jul 11, 2007
    • 0 Attachment

      JSON does not support either datetime object or function object. Look at BNF on http://www.json.org/ how "value" is defined.
      It contains, ["string", "number", "object", "array", "true", "false", "null"]. On this definition "object" is a JSON object (where you can find the definition above "value"), not a Javascript object.

      Although you can freely add something like new Date(2007, 7, 12, 0, 0, 0) or function(x,y) {return x+y;}, this makes that document a Javascript document (where you can eval), not JSON document.


      To: json@yahoogroups.comFrom: bruce.hubbard33@...: Wed, 11 Jul 2007 23:32:28 +0000Subject: [json] Re: json date time objects

      --- In json@yahoogroups.com, "rkmr.em@..." <rkmr.em@...> wrote:>> Does JSON support a datetime object?> > thanks> > > [Non-text portions of this message have been removed]>you can put whole functions in a json object if you like. So in short yes just make a new Date() object within you JSON object.

      Missed the show?  Watch videos of the Live Earth Concert on MSN.

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