|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
IIB - 9 : JSON - Formatting |
« View previous topic :: View next topic » |
Author |
Message
|
Venkat10 |
Posted: Fri May 11, 2018 9:20 am Post subject: IIB - 9 : JSON - Formatting |
|
|
Novice
Joined: 10 Mar 2014 Posts: 19
|
Creating flat files with JSON format and sending to a client but client is requesting to send the data in readable format not in single line. Is there a way I can achieve this in IIB 9.
Example:
Result : {"name":"A","name2":"B"}
Expected result :
{
"name":"A",
"name2":"B"
} |
|
Back to top |
|
 |
souciance |
Posted: Fri May 11, 2018 9:35 am Post subject: Re: IIB - 9 : JSON - Formatting |
|
|
Disciple
Joined: 29 Jun 2010 Posts: 169
|
Venkat10 wrote: |
Creating flat files with JSON format and sending to a client but client is requesting to send the data in readable format not in single line. Is there a way I can achieve this in IIB 9.
Example:
Result : {"name":"A","name2":"B"}
Expected result :
{
"name":"A",
"name2":"B"
} |
Hello,
This shouldn't matter to your client. If they use a json parser to parse the json string then that should be enough. The parser on their side can prettify it for the end user. |
|
Back to top |
|
 |
Vitor |
Posted: Fri May 11, 2018 10:41 am Post subject: Re: IIB - 9 : JSON - Formatting |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
souciance wrote: |
This shouldn't matter to your client. If they use a json parser to parse the json string then that should be enough. The parser on their side can prettify it for the end user. |
JSON (and XML for that matter) are not intended to be human readable.
If the client in question has a cheap / non-compliant / homegrown / perm any one of these three parser that needs the elements broken out, that's kinda their problem. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|