Skip to main content

Decode JSON

XML
<decode:json var="var">
string
</decode:json>

<decode:json /> generates a value from a JavaScript Object Notation (JSON) representation according to RFC 4627.

<decode:json /> is the complement of the <encode:json /> operation.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name decode:json

Results

BindingTypePredicate
varN/A

Examples

XML
<decode:json var="names">{"bg":"Bill Gates","sj":"Steve Jobs"}</decode:json>
<output>$names.bg</output>
<!-- Bill Gates -->