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 » Problem with parsing JSON Array elements in JavaCompute node

Post new topic  Reply to topic
 Problem with parsing JSON Array elements in JavaCompute node « View previous topic :: View next topic » 
Author Message
woodpecker023
PostPosted: Mon Oct 01, 2018 11:25 pm    Post subject: Problem with parsing JSON Array elements in JavaCompute node Reply with quote

Newbie

Joined: 01 Oct 2018
Posts: 1

Hello friends,
I am having problem getting JSON array elements In Integration Bus Version: 10.0.0.8

In your example you use

inMessage.getRootElement().getFirstElementByPath("/JSON/Data/orders/Item[1]/Item[1]"); // 'thing1'
inMessage.getRootElement().getFirstElementByPath("/JSON/Data/orders/*[2]/*[3]"); // '2.02'

But this throws me a NullPointerException,

When i use "/JSON/Data/orders/Item" i can get some value, but only the first element.

Could anyone help me out with this?
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 » Problem with parsing JSON Array elements in JavaCompute node
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.