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.stringify()

Serialise a Javascript 'thing' as an IETF RFC 7159 conformant serialisation

Syntax

string = JSONexp.stringify(thing)

Parameters

The 'JSONexp.stringify' method takes 1 parameter:

Name Type/Value Range/Length Description
thingMetaData  Required. Any arbitrary Javascript entity: string, object, number, boolean, date etc

Results

The 'JSONexp.stringify' method returns string:

Type/Value Range/Length Description
string   IETF RFC 7159 conformant serialisation of the single argument

Remarks

This method is a drop-in replacement for Javascript implementations of JSON.stringify.

Benchmarks show this native implementation performs approximately 50x faster than using a Javscript implementation.

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

JSON = JSONexp;

Whitebeam release 1.3.36
(loadtime : 7ms)