You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Conversion of xml to json

Received Response
42
Views
6
Comments
edited Nov 23, 2017 8:00AM in Integration 6 comments

Summary

Conversion of xml to json

Content

Hi,

Is it feasible to convert xml to json as explained below:

Facing issue for string datatype elements while invoking the target system in ICS. we are using javascript to convert xml to json.

eg; phone is of string datatype over xml - if we pass number for phone at xml then on conversion response json is having value phone: 23249480 but expected as phone: "23249480" how to handle datatypes during conversion.

The sample xml is as follows:

<shipmentRequest>

<Kind>1</Kind>

         <ActorCSID>63</ActorCSID>

         <ProdConceptID>113</ProdConceptID>

         <Addresses>

            <Kind>2</Kind>

            <Name1>Test sender</Name1>

            <Street1>Test Address</Street1>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!