ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker SupportIIB - 9 : JSON - Formatting

Post new topicReply to topic
IIB - 9 : JSON - Formatting View previous topic :: View next topic
Author Message
Venkat10
PostPosted: Fri May 11, 2018 9:20 am Post subject: IIB - 9 : JSON - Formatting Reply with quote

Novice

Joined: 10 Mar 2014
Posts: 18

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
View user's profile Send private message
souciance
PostPosted: Fri May 11, 2018 9:35 am Post subject: Re: IIB - 9 : JSON - Formatting Reply with quote

Disciple

Joined: 29 Jun 2010
Posts: 152

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
View user's profile Send private message
Vitor
PostPosted: Fri May 11, 2018 10:41 am Post subject: Re: IIB - 9 : JSON - Formatting Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 24972
Location: Ohio, 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
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportIIB - 9 : JSON - Formatting
Jump to:



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
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.