|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Using BLOB in JSON |
« View previous topic :: View next topic » |
Author |
Message
|
manan.patel |
Posted: Tue Oct 16, 2012 7:51 am Post subject: |
|
|
Apprentice
Joined: 01 Oct 2012 Posts: 25
|
what can we do for the same case with JSON parser??
Like for BLOB, you can write BLOB.BLOB,
But for JSON, i am writing JSON.Data...
I know it wont work as the message has been parsed to a tree structure but what is the other way to fulfill the criteria?? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Oct 16, 2012 8:51 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Split (not entirely successfully!) from this 2 year old thread, which was itself a restart of a 3 year old thread.
@manan.patel - what criteria? What are you trying to do? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 16, 2012 8:55 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
All logical message trees are serialized into a stream of bytes by the output node that is called.
The job of the parser associated with the message tree is to assemble the children of the main parser node into the relevant bitstream by the rules of the parsing engine.
So the BLOB parser has exactly one simple rule - "Extract the contents of the first child named 'BLOB' as the bitstream".
All of the remaining parsers - XMLNSC, DFDL, MRM, JSON, MIME, SOAP, etc. have more complicated rules on what children are legal to construct and how those children are combined into a bitstream.
The ESQL function ASBITSTREAM will take a logical message tree and instruct the parser associated with it to create the same bitstream that would be produced for an output node. |
|
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
|
|
|
|