Configuring the JSON to XML policy for DataPower Gateway (v5 compatible)
Follow these steps to configure the JSON to XML policy for DataPower® Gateway (v5 compatible) in the assembly user interface.
About this task
Note: This topic describes the JSON to XML policy implementation
in the DataPower Gateway (v5 compatible). If you
are using the DataPower API Gateway,
see Configuring the JSON to XML policy for DataPower API Gateway. For more information about the different
types of gateway, see API Connect gateway types.
For details on how to configure the policy in your OpenAPI source, see json-to-xml.
Procedure
Example
For example, the following simple JSON
object
{ "a": { "$" : "hello" } }becomes<a>hello</a>The following JSON object with an
attribute
{ "a": { "$" : "hello", "@type" : "world" } }becomes<a type="world">hello</a>