14.07.2013 Views

Essentials of Javascript - Cultural View

Essentials of Javascript - Cultural View

Essentials of Javascript - Cultural View

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

JsonML 108<br />

<br />

["person",<br />

{"created":"2006-11-11T19:23",<br />

"modified":"2006-12-31T23:59"},<br />

["firstName", "Robert"],<br />

["lastName", "Smith"],<br />

["address", {"type":"home"},<br />

["street", "12345 Sixth Ave"],<br />

["city", "Anytown"],<br />

["state", "CA"],<br />

["postalCode", "98765-4321"]<br />

]<br />

]<br />

<br />

JsonML (Object Form)<br />

JsonML Object Form uses:<br />

<br />

<br />

<br />

Robert<br />

Smith<br />

<br />

12345 Sixth Ave<br />

Anytown<br />

CA<br />

98765-4321<br />

<br />

<br />

<br />

• JSON Objects to represent XML elements and their attributes, and<br />

• JSON Arrays to represent child node lists<br />

The JsonML Object Form representation <strong>of</strong> the person record is:<br />

JsonML (Object Form) Original XML<br />

1"><br />

<br />

rson",<br />

<br />

06-11-11T19:23",<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!