Article Preview
Buy Now
FEATURE
Using JSON
Using Web-based services with JSON
Issue: 9.6 (September/October 2011)
Author: Mattias Sandström
Author Bio: Mattias is the programming CEO of Tangix Design and Development, a Sweden-based company developing software solutions for the web and for the Windows platform.
Article Description: No description available.
Article Length (in bytes): 12,125
Starting Page Number: 26
Article Number: 9607
Resource File(s):
9607.zip Updated: 2011-09-02 00:15:29
Related Web Link(s):
http://developer.yahoo.com/yql/console
http://query.yahooapis.com/v1/public/yql?q=select%20
http://www.json.org/
http://developer.yahoo.com/yql/console/
Excerpt of article text...
In Real Studio 2011r2 a new class was added: JSONItem, making it easy for developers to create applications that interact with many web-based services available on the Internet. In this article we will look at some examples using the Yahoo API and parse the returned JSON in a Real Studio application.
JSON stands for JavaScript Object Notation and is a light-weight structure to describe objects in plain-text. As the name implies, the origin of JSON is JavaScript and I first came in contact with JSON as a replacement to XML at the dawn of Web 2.0. The structure of XML with the repeated tags and the overhead of parsing the XML made developers look for an alternative and JSON was a perfect replacement. JSON is easily parsed in JavaScript with the eval() command and easily generated server-side as JSON functions are implemented in most languages.
JSON is organized around objects and arrays where each object contains zero or more "name:value" pairs, separated by comma and enclosed in curly braces:
{}, { "name": "value" } or { "name1": "value1", "name2": "value2" }
...End of Excerpt. Please purchase the magazine to read the full article.