Develop > Presentation layer > WebSphere Commerce foundation tag library


Tag: json

The json tag converts the specified Java object to JavaScript Object Notation (JSON).

Tag Information
Tag Class com.ibm.commerce.foundation.internal.client.taglib.JsonTag
Body Content empty
Display Name json

Attributes
Name Required Request-time Type Description
object true true java.lang.Object The Java object input.

Variables
No Variables Defined.


Limitations

  1. The JSON tag operates on Java objects, not Java primitives.

  2. It cannot convert objects that reference themselves. That is, if an object references itself, a stack overflow error will occur.


Example

The following example converts the RequestProperties object into JSON notation.

<wcf:json object="${RequestProperties}"/> 

Related reference

WebSphere Commerce foundation tag library


+

Search Tips   |   Advanced Search