|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JSON parser error |
« View previous topic :: View next topic » |
Author |
Message
|
firoj.badsa |
Posted: Fri Dec 01, 2017 7:16 am Post subject: JSON parser error |
|
|
 Centurion
Joined: 16 Feb 2007 Posts: 104
|
Hello,
we are facing a problem while parsing a JSON message.
"The JSON parser reached the end of the bitstream whilst parsing the JSON document 0x00000023"
the same message works while we put the transaction in a debug mode.. any idea/suggestions?
Code: |
DECLARE returnValue BOOLEAN; SET returnValue = SLEEP(60000); SET OutputRoot.JSON = NULL; DECLARE inCCSID INT InputProperties.CodedCharSetId; DECLARE inEncoding INT InputProperties.Encoding; CREATE LASTCHILD OF OutputRoot DOMAIN('BLOB') PARSE(envvar.DownloadBlobReceived, inEncoding, inCCSID,'CHARACTER', 'BLOB'); SET envvar.DownloadBlobReceived = NULL;DECLARE inBitStream BLOB ASBITSTREAM(OutputRoot.BLOB.BLOB, inEncoding, inCCSID); CREATE LASTCHILD OF OutputRoot DOMAIN('JSON') PARSE(inBitStream, inEncoding, inCCSID,'BLOB', 'JSON'); |
|
|
Back to top |
|
 |
souciance |
Posted: Fri Dec 01, 2017 5:07 pm Post subject: |
|
|
Disciple
Joined: 29 Jun 2010 Posts: 169
|
A bit hard to see what you are trying to do but are you trying to convert a BLOB to a JSON. Why not output from your esql a BLOB and add RCD node and convert to JSON? |
|
Back to top |
|
 |
martinb |
Posted: Sun Dec 03, 2017 1:06 am Post subject: |
|
|
Master
Joined: 09 Nov 2006 Posts: 210 Location: UK
|
Please show the full BIP messages received in this case.
What exactly do you mean by
Quote: |
the same message works while we put the transaction in a debug mode |
Is this flow debug, user trace etc? |
|
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
|
|
|
|