Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

PDF:

Feature

Using JSON

Using Web-based services with JSON

Issue: 9.6 (September/October 2011)
Author: Mattias Sandstrom
Article Description: No description available.
Article Length (in bytes): 9,332
Starting Page Number: 26
RBD Number: 9607
Resource File(s):

Download Icon 9607.zip Updated: Friday, September 2, 2011 at 11:57 AM

Related Web Link(s):

http://developer.yahoo.com/yql/console

Known Limitations: None

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:

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com