@storm.apache.org
Subject: Aw: Re: RE: Re: Re: Split Kafka JSON String
Thank you for your help!
But unfortunately it still does not work. My code looks as follows:
import org.json.simple.JSONObject;
import backtype.storm.topology.BasicOutputCollector;
import backtype.storm.tuple.Tuple;
public class
;Ganesh Chandrasekaran"
An: "user@storm.apache.org"
Betreff: Re: Aw: RE: Re: Re: Split Kafka JSON String
You have to access the 0th index for the string… and then perform the operations to get the values
public void execute(Tuple tuple) {
String tupleString =
To: "user@storm.apache.org"
Subject: Aw: RE: Re: Re: Split Kafka JSON String
Thank you, I tried it, but it is not working. I have to use the Tuple input,
which is a string, containing a JSON, coming from Kafka. When I try the
following:
JSONObject obj = new JSONObject(input); it tells me to
Gesendet: Dienstag, 24. Mai 2016 um 19:05 Uhr
Von: "Sinnema, Remon"
An: "user@storm.apache.org"
Betreff: RE: Re: Re: Split Kafka JSON String
Import org.json.JSONObject;
JSONObject obj = new JSONObject(jsonString);
String command = obj.getString(“command”);
Import org.json.JSONObject;
JSONObject obj = new JSONObject(jsonString);
String command = obj.getString(“command”);
From: Daniela S [mailto:daniela_4...@gmx.at]
Sent: dinsdag 24 mei 2016 18:08
To: user@storm.apache.org
Subject: Aw: Re: Re: Split Kafka JSON String
Hi,
unfortunately it does not w