BiJsonLoader

Loads a JSON file and returns the javascript object that the JSON file describes.

This class extends BiTextLoader and therefore all methods and fields available for BiTextLoader are also available for BiJsonLoader .

Constructor

new BiJsonLoader ( )

Parameters

No parameters.

Properties

Name Type get set Descripton
data BiXmlDocument checked If successfully loaded this returns the loaded javascript object.

Methods

None.

Events

None.

Static Methods

Name Description
load Loads a JSON file synchronously and returns the data described by the JSON as a javascript object

Static Fields

None.

Remarks

Using syncronous loading freezes the web browser while the loading takes place. This should be prevented as much as possible and therefore asynchronous loading is preferred.

Static Method Details

load

Loads a JSON file synchronously and returns the data described by the JSON as a javascript object

Syntax

BiJsonLoader
 .
 load
 (
 oUri
 )
 

Parameters

Name Type Optional Default Descripton
oUri BiUri The location of the file. If this is a string a new URI is created from that string relative to the ADF path.

Return Type

Object