Constructs a JSON string from the enclosed <arg-strings>. Each <arg-string> is evaluated as a key-value pair where name in <arg-string> is the key and the enclosed text is evaluated as the value. JSON Arrays can be defined in a JSON Object. The below example has a JSON array defined in a JSON object.
<token-json-object>
<arg-string name="name">
<token-text xml:space="preserve">"Mike"</token-text>
</arg-string>
<arg-string name="age">
<token-text xml:space="preserve">40</token-text>
</arg-string>
<arg-string name="disabled">
<token-text xml:space="preserve">false</token-text>
</arg-string>
<arg-string name="rights">
<token-json-array>
<arg-string>
<token-text xml:space="preserve">"admin"</token-text>
</arg-string>
<arg-string>
<token-text xml:space="preserve">"manager"</token-text>
</arg-string>
<arg-string>
<token-text xml:space="preserve">"reviewer"</token-text>
</arg-string>
</token-json-array>
</arg-string>
</token-json-object>
The above example is evaluated as the following JSON string.
{"name":"Mike","age":40,"disabled":false,"rights":["admin","manager","reviewer"]}