Whitebeam Object Definition

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Object Definition

Method Description

JSONexp.parse()

A re-constructed Javascript 'thing' extracted from the JSON serialisation

Syntax

MetaData Object = JSONexp.parse(json_string)

Parameters

The 'JSONexp.parse' method takes 1 parameter:

Name Type/Value Range/Length Description
json_stringstring  Required. IETF RFC 715 conformant string

Results

The 'JSONexp.parse' method returns a JavaScript object containing arbitrary attributes (Meta Value):

Type/Value Range/Length Description
MetaData   A text Unicode string containing the contents of the Binary object.

Remarks

This method is a close replacement for Javascript implementations of JSON.parse with the following exceptions:

  • does not support a second parameter to allow the application to further modify decoded string values
  • if the string conforms to an ISO 8601 date in the format: 'YYYY:MM:DDThh.mm.ss.mmmZ' then a Javascript Date object is created to represent the value

To use this in place of JSON.parse either reference JSONexp directly or:

JSON = JSONexp;

Whitebeam release 1.3.36
(loadtime : 7ms)