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

Post new topic  Reply 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.

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

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

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
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 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.