Zum Hauptinhalt springen

Decode JSON

Anatomy

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

Description: DECODE:JSON generates a structural 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

Example

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