"json:number" is coming invalid after store://jsonxtojson.xsl transformation". We have been facing this issue with JSONX 2 JSON transformation.
e.g. <json:number name="balance"></json:number> "Converts to" {"balance":} which is not a valid JSON.
DataPower implements specs, according the JSON spec an empty string is NOT a number:
http://tools.ietf.org/html/rfc4627#page-4
(because of the "int" it has to contain at least one digit)
You have to make sure that the JSONX you generate follows the spec, then conversion is done without problems.
Alternatively (but that is not a best practice), you could copy json2jsonx.xsl to "local:" folder and modify to your needs.
Popular Posts
-
DataPower has provided easy way to allow developers to create log entries or capture information related to a transaction. If you are famili...
-
To work with JSON type messages, DataPower first converts it to JSONX, a proprietary XML based format to represent JSON message, does transf...
-
I had a requirement where I need to create and store as many context variable depending on the number of elements received with incoming re...
-
SOMA Interface is one of the good way to interact with DataPower specially when it comes to admin related activities. Here is the Simple ...
-
Yes, it's possible to do TCP Connection Test without login into DataPower box. In general, DataPower has provided TCP Connection test...
Monday, January 13, 2014
Invalid JSON Number after store://jsonxtojson.xsl transformation
Labels:
datapower,
firmware 5,
json,
jsonx,
xi52
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment