JSON string to structured data type conversion. [message #1708981] |
Wed, 23 September 2015 06:38  |
Ts Patil Messages: 32 Registered: September 2015 |
Member |
|
|
HI,
I am looking for an example source or help to convert JSON string to structured data type.
I am using IPP browser modeller and making a call to web service which returns me a JSON string
e.g.
[{"Id":5,"Name":"abc","eMail":"abcd@abc.com","isActive":1},
{"Id":6,"Name":"def","eMail":"pqr@abc.com","isActive":1}]
And I want to convert it into structured data type named
Student - which having all four fields.
Id, Name, eMail, isActive.
Which application type will help to covert the JSON string to Structure data. Or any example source or any pointer.
Thanks in advance.
|
|
|
|
Re: JSON string to structured data type conversion. [message #1709127 is a reply to message #1709110] |
Thu, 24 September 2015 09:43   |
Ashish Khole Messages: 28 Registered: April 2015 |
Junior Member |
|
|
Hi,
Attached is the testModel which converts the JSONdata to SDT.
The model takes the input as a PrimitiveData(String) as follows:
{"Students":[{"Id":5,"Name":"abc","eMail":"abcd@abc.com","isActive":1},
{"Id":6,"Name":"def","eMail":"pqr@abc.com","isActive":1}]}
which Stores the result in the SDT Data "Students". Model uses GenericCamel Application for the Conversion.
Hope this helps!!
-Cheers
Ashish
[Updated on: Thu, 24 September 2015 09:45] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02152 seconds