JSON components

The namespace prefix is json and the namespace declaration is http://www.volantis.com/xmlns/2009/07/json.

The namespace prefix is json and the namespace declaration is http://www.volantis.com/xmlns/2009/07/json.

Name Purpose
Class cf2:json.ajax

Allows authors to integrate JSON and AJAX by extending the V$.ajax.Request and V$.ajax.Response classes.

cf2:json.Parser

Provides a simple and secure mechanism for parsing a JSON string into the equivalent JavaScript object, without authors having to decide whether the source is trusted or not.

cf2:json.Parser#TrustedSource

Parses a JSON string coming from a trusted source into the equivalent JavaScript object.

cf2:json.Parser#UntrustedSource

Parses a JSON string into the equivalent JavaScript object. This component can be used for both trusted and untrusted sources. However, if the JSON is known to come from a trusted source, then it may be more efficient to use cf2:json.Parser#TrustedSource.

Related topics