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 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) 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

Issue 9.6


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):

Download Icon 9607.zip Updated: 2011-09-02 00:15:29

Related Web Link(s):


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.