Questions tagged [jsonx]

JSONx is an IBM® standard format to represent JSON as XML.

JSONx is an IBM® standard format to represent JSON as XML.

JSONx conversion rules specify how a DataPower® service converts a JSON structure to JSONx (XML).

Links

16 questions
2
votes
2 answers

Can we send html code through JSONX to get it in JSON

Hi I am using IBM Datapower.I have a question Can we send html content to json through jsonx.. like hiii I tried like the above i got response…
Ironman
  • 556
  • 3
  • 7
  • 21
2
votes
2 answers

JSONX to JSON transformation

I have some XML data dumped from my database and I need to re-format it into JSON. I am using an IBM DataPower database, so I actually need to transform that XML to JSONx and then use IBM's default translator, which automatically translates JSONx to…
Ironman
  • 556
  • 3
  • 7
  • 21
2
votes
3 answers

convert xml to jsonx using xslt

Can anyone help me out in getting the below with an array..I have to generate the generalised xsl.. Input XML: john
user1731504
  • 159
  • 1
  • 3
  • 12
1
vote
2 answers

How can I transform xml -> JXML via xslt?

I have to do the transformation using xsl to generate arrays,objects,strings of json.. I am failing to produce the arrays.. Actually my requirement is I have to transform the XML to JXML and JXML to json.. I have the generalized xslt for jxml to…
1
vote
1 answer

Need General xslt for XML to JSONX

Possible Duplicate: convert xml to jsonx using xslt Can anyone help me out in getting the below with an array..I have to generate the generalised xsl.. Input XML: 0 String
user1731504
  • 159
  • 1
  • 3
  • 12
1
vote
2 answers

Trying to create xml from the attribute values

My input xml would be like this with json namespaces..
user1731504
  • 159
  • 1
  • 3
  • 12
0
votes
2 answers

Renaming duplicate array names in XSLT 1.0

I have below list with arrays having same name(json:array name="member"). I am trying to rename them something meaningful (json:array name="member1") so they remain unique values. I am trying to use identity template. Input:
Mano
  • 143
  • 1
  • 2
  • 13
0
votes
1 answer

How to bypass the special/French characters from JSON to XML using an xslt in datapower

I'm trying to send a sepcial/French character like : ÆÇÈ-1 Çâfé's Çôrp-Ltd in the JSON request, but it is failing with the below error: { "error":{ "code":"4000", "message":"Invalid Request From Consumer. Error Description :0x00c30025 Unable to…
sush
  • 1
  • 1
0
votes
1 answer

converting xml to jsonx format

I am trying to transform XML payload to jsonx format. My code is not working when input XML has attributes, could you please assist. Application element should be coming as json:object but it is coming as json:string May I know how can I keep…
sarma
  • 63
  • 1
  • 12
0
votes
0 answers

Datapower - Convert Query not converting JSON to JSONX

I have a very simple usecase which has worked previously. But in this new mpgw where flow is url-open to an API & get json response & process that response before sending to client, it doesn't work. I have tried the below in xslt
swetad90
  • 784
  • 1
  • 13
  • 34
0
votes
1 answer

XSLT: How to select value from the object based on the particuar value from an JSONX array object

From the below example I need to extract the data of "value" field., when the string field name = "first". How should write the xpath in XSLT for the below JSONX sample to get the desired result. Example:
Ann
  • 13
  • 4
0
votes
1 answer

facing issue while converting JSONx attributes to XML through XSLT

I have written a xslt to convert JSOnx to XML. how ever it is not converting attributes:Look at the attributes like tokenized. Here is my xslt:
0
votes
2 answers

Stringify jsonx object nested within url-open tag

I'm using ibm datapower to send a post request to an api. I'm using the url-open tag to send the post but I'm having trouble with the json payload. Ideally I'd like to do something like this:
Cathal
  • 1,740
  • 18
  • 31
0
votes
1 answer

Setting an attribute's name to match a substring of another element's attribute

I'm writing an XSLT that, among other things, locates certain elements that have a "name" attribute with a value that starts with a dash ('-'). When such attribute is found, the xslt creates an xsl:attribute, which name is all the text that comes…
dotaneli
  • 45
  • 11
0
votes
1 answer

convert jsonx array to xml in xslt

My input XML would be like this
user1731504
  • 159
  • 1
  • 3
  • 12
1
2