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

1543Re: [json] Sanity Check - New to JSON

Expand Messages
  • John Cowan
    Jun 26 10:26 AM
      jonathan wallace scripsit:

      > Think of it like C++, that should help you figure out when to use
      > an object and when to use an array. Basically, an array is a set of
      > items that are the same object type.

      That's overly restrictive for JSON, whose aggregates are modeled on
      JavaScript. An array can be seen either as a sequence of data items
      (same type or different types, it makes no difference) or as an object
      (key-value mapping) where the keys are integers from 0 to n - 1.

      Winter: MIT, John Cowan
      Keio, INRIA, cowan@...
      Issue lots of Drafts. http://www.ccil.org/~cowan
      So much more to understand!
      Might simplicity return? (A "tanka", or extended haiku)
    • Show all 4 messages in this topic