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 Index » WebSphere Message Broker (ACE) Support » JSON reserved words

Post new topic  Reply to topic
 JSON reserved words « View previous topic :: View next topic » 
Author Message
deepak_paul
PostPosted: Tue Mar 03, 2015 1:19 pm    Post subject: JSON reserved words Reply with quote

Centurion

Joined: 04 Oct 2008
Posts: 147
Location: US

All,

When we write a new JSON message that is modeled to have a property name as 'class' and message flow is interfacing with HTTP nodes(Input and Output), we see that property 'class' is not created in the JSON message. Is there a way to escape the reserved words of JSON (like class, break, export etc) in ESQL.
_________________
Regards
Paul
Back to top
View user's profile Send private message
adubya
PostPosted: Tue Mar 03, 2015 1:54 pm    Post subject: Re: JSON reserved words Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

deepak_paul wrote:
All,

When we write a new JSON message that is modeled to have a property name as 'class' and message flow is interfacing with HTTP nodes(Input and Output), we see that property 'class' is not created in the JSON message. Is there a way to escape the reserved words of JSON (like class, break, export etc) in ESQL.


Try enclosing all property names in double quotes. To be correct JSON then all the property names (and string "values" ) should be enclosed in double quotes.

http://www.json.org/
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Mar 03, 2015 1:57 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What does a trace node show of the message tree before the HTTPReply node?

What should the JSON document you are trying to create look like?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » JSON reserved words
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.