Menu JSON
 

JSON

My interest in JSON is two-fold, the association with AJAX and the fact that I was getting a JSON error when I was downloading a report or statement from a website that I use. I cannot remember what site at the moment.

The file was doLogin.json and it contained {"redirect":"summary.html"} - so I think it was what I thought above. Probably a programming error on the site I was downloading it from.

Top

What json.org say:

" JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language. "

Data Structures:

Quite frankly, when I looked at the pages on json.org and Douglas' site I was a little intimidated by the diagrams. on more introspection I am not sure how it could have been done differently. The structure of a JSON file can take many forms but there is a specification on how they are formatted.

A JSON Object

For example, the first definition on json.org:

" 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 example of this:

var books = [
{
"title": "Cracking the coding interview",
"subtitle":"189 programming questions and solutions",
"author":"Gayle Laakmann McDowell",
"category":"Programming",
"publisher":"CareerCup, LLC"
},
{
"title": "No friend but the mountains",
"subtitle":"Writing from manu prison",
"author":"Behrouz Boochani",
"category":"Literature",
"publisher":"Pan Macmillan Australia"
},
.............................. more data ]

The example data above is from my page on a search page of a list of books that is built as a JSON Object.

Links

External Links Disabled.

tempusfugit.me.uk is a non-commercial website. No payment or benefit is gained by the placement of links toother websites.

The External link is disabled to on this page, please visit other pages

Unlike most genealogical research websites tempusfugit.me.uk does not attempt to get you to "sign-up" when you click on one of their links.

This Wikipedia link is disabled.

The link on Wikipedia was to:

External Links Disabled.

tempusfugit.me.uk is a non-commercial website. No payment or benefit is gained by the placement of links to other websites.

The External link is disabled to on this page, please visit other pages

Top

External Links - references

Site design by Tempusfugit Web Design -