Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] [Not just Javascript] Looping through JSON data should be simple, shouldn't it?



> So... how come I don't got no square brackets in my JSON output?

Objects and arrays are formatted differently, aren't they?

An object is an unordered set of name/value pairs. An object begins
with { (left brace) and ends with } (right brace). Each name is
followed by : (colon) and the name/value pairs are separated by ,
(comma).
An array is an ordered collection of values. An array begins with [
(left bracket) and ends with ] (right bracket). Values are separated
by , (comma).
http://www.json.org/

Shawn


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links