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

824Re: json keys

Expand Messages
  • marcrbraincast
    Jun 27, 2007
    • 0 Attachment
      --- In json@yahoogroups.com, "marcrbraincast" <marcrbraincast@...> wrote:
      >
      > --- In json@yahoogroups.com, "Mark Ireland" <markincuba@> wrote:
      > >
      > >
      > > For a smaller jsObject can there be a json variable like this:
      > >
      > > {"totalItems":40, "itemsFound":2,
      > "UNIQUEIDS":["js63013","js63009"],
      > > "columnnames":["Company,Title,Name,Phone,Email"], items: ["js63013":
      > > {"A1 Services",
      > > "CEO",
      > > "Jane Jones",
      > > "800-555-2121",
      > > "janejones@"},
      > >
      > > "js63009":{"Acme",
      > > "President",
      > > "John Smith",
      > > "800-555-1212",
      > > "johnsmith@"}
      > > ]}
      > >
      > >
      > > rather than this:
      > >
      > > {SalesDatabase2:
      > > {totalItems:40, itemsFound:2, items: [
      > > {Company:"A1 Services",
      > > Title:"CEO",
      > > Name:"Jane Jones",
      > > Phone:"800-555-2121",
      > > Email:"janejones@"},
      > >
      > > {Company:"Acme",
      > > Title:"President",
      > > Name:"John Smith",
      > > Phone:"800-555-1212",
      > > Email:"johnsmith@"}
      > > ]}
      > > }
      > >
      > > _________________________________________________________________
      > > Advertisement: ninemsn Travel - Hot deals, travel ideas & Lonely
      Planet
      > > guides.
      > >
      >
      http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=799&referral=hotmailtagline&URL=http://travel.ninemsn.com.au/compIntro.aspx?compId=2404
      > >
      >
      > Then it would probably become something like this:
      >
      >
      {"totalItems":40,"itemsFound":2,"UNIQUEIDS":["js63013","js63009"],"columnnames":["Company","Title","Name","Phone","Email"],"items":{"js63013":["A1
      > Services","CEO","Jane Jones","800-555-2121","janejones@a1service
      > s.com"],"js63009":[" Acme","President","John
      > Smith","800-555-1212","johnsmith@acme. com"]}}
      >
      > But although that probably results in a somewhat smaller json string I
      > don't really see a benefit, in fact, the object looks a lot more
      > difficult to get the value's form.
      >

      grrr.... let's try that again... :/


      {"totalItems":40,
      "itemsFound":2,
      "UNIQUEIDS":["js63013","js63009"],
      "columnnames":["Company","Title","Name","Phone","Email"],
      "items":{"js63013":
      ["A1 Services","CEO","Jane Jones",
      "800-555-2121","janejones@..."],
      "js63009":
      [" Acme","President","John Smith",
      "800-555-1212","johnsmith@acme. com"]}}
    • Show all 15 messages in this topic