cf2:json.Parser#TrustedSource

Purpose

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

See also cf2:json.Parser#UntrustedSource.

Exported Features

cf2:json.Parser#TrustedSource, cf2:json.Parser#Trusted

Note:

The cf2:json.Parser#Trusted feature is deprecated. Instead, the cf2:json.Parser#TrustedSource feature must be used.

Imported Features

n/a

JavaScript

This component is provided by the V$.json object.

trusted(json)

Parses a JSON string into the equivalent JavaScript object. This must only be called if the JSON is known to come from a trusted source.

Parameter Description Type
json The JSON formatted string. String

Related topics