× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi All

Sorry for spamming with too many emails as I am new to this forum , Peter
just advised me to use code.midrange for snippets.
Please find the code attached.


https://code.midrange.com/5556d53828.html

On Thu, May 23, 2019 at 3:16 PM anshul narang <narang.anshul@xxxxxxxxx>
wrote:


Snippet for Output as Json only .





Now I am expecting the content type to be application/Json( it means I can
set up header-application json or I can set up output media as JSON


Values in debug .


VAL dataout

DATAOUT =

....5...10...15...20...25...30...35...40...45...50...55...60

1 '{"headquarterNumber":800000000,"headquarterName":"TEST8 '

61 ' ","headquarterAddr'

121 'essLine1":"ADR8 '

181 ' ","headquarterAddressLine2":"ADDRESS2 '

241 ' ","headquarterAddressLine3":"ADDRESS'

301 '3 "}’


Output shown in Postman with \


{

"DATAOUT":
"{\"headquarterNumber\":800000000,\"headquarterName\":\"TEST8
\",\"headquarterAddressLine1\":\"ADR8
\",\"headquarterAddressLine2\":\"ADDRESS2
\",\"headquarterAddressLine3\":\"ADDRESS3
\”}”



Header Info


200 OK

Time:191347 ms

Size:1.47 KB



*Date →*Thu, 23 May 2019 17:29:59 GMT

*Server →*Apache

*X-Powered-By →*IBM i

*Content-Length →*1153

*Access-Control-Allow-Origin →**

*Access-Control-Allow-Headers →*origin, x-requested-with, content-type

*Access-Control-Allow-Methods →*PUT, GET, POST, DELETE, OPTIONS

*Connection →*close

*Content-Type →*application/json

*Content-Language →*en-US






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.