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
| Name | Type | Description | Defined By |
|---|---|---|---|
| var | var | Result variable name | decode:json |
Results
| Binding | Type | Predicate |
|---|---|---|
| var | N/A |
Examples
XML
<decode:json var="names">{"bg":"Bill Gates","sj":"Steve Jobs"}</decode:json>
<output>$names.bg</output>
<!-- Bill Gates -->