Blog Detail

Processing JSON requests

29 Jul 12
webmaster
No Comments

DataPower V4 support JavaScript Object Notation (JSON) as a message format. JSON can be specified in any of the following configuration options:

The request type of Multi-Protocol Gateway, XML Firewall, or Service Gateway services
The response type of Multi-Protocol Gateway, XML Firewall, or Service Gateway services
The default encoding in conversion actions of a processing policy

In all of these cases, when a DataPower service or processing action processes a JSON message, the message is made available as JSONx. JSONx is an XML schema-defined structure that enables you to further manipulate the message using XSLT. To convert JSONx back to JSON, store:///jsonxtojson.xsl can be used.

There are 2 ways to convert JSON to JSONx:

1. Using HTTP Convert Query Action

http-convert-query-action

http-convert-query-action-convert-map

 

 

 

2. Setting Request Type as JSONĀ and use __JSONASJSONX context

request-type-json