|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JSON reserved words |
« View previous topic :: View next topic » |
Author |
Message
|
deepak_paul |
Posted: Tue Mar 03, 2015 1:19 pm Post subject: JSON reserved words |
|
|
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 |
|
 |
adubya |
Posted: Tue Mar 03, 2015 1:54 pm Post subject: Re: JSON reserved words |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Mar 03, 2015 1:57 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|