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 SupportJSON parser error

Post new topicReply to topic
JSON parser error View previous topic :: View next topic
Author Message
firoj.badsa
PostPosted: Fri Dec 01, 2017 7:16 am Post subject: JSON parser error Reply with quote

Centurion

Joined: 16 Feb 2007
Posts: 104

Hello,

we are facing a problem while parsing a JSON message.

"TheJSONparserreachedtheendofthebitstreamwhilstparsingtheJSONdocument0x00000023"

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
View user's profile Send private message
souciance
PostPosted: Fri Dec 01, 2017 5:07 pm Post subject: Reply with quote

Voyager

Joined: 29 Jun 2010
Posts: 83

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
View user's profile Send private message
martinb
PostPosted: Sun Dec 03, 2017 1:06 am Post subject: Reply with quote

Disciple

Joined: 09 Nov 2006
Posts: 179
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
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 SupportJSON parser error
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.