Processing 2b.08 and json4processing: parsing issues
in
Contributed Library Questions
•
5 months ago
I'm trying to parse the following JSON with json4processing
{
"timestamp": "2013-05-17T20:41:07+02:00",
"words": ["ok", "try", "Yes"]
}
I can access the timestamp entry, but I have not idea how to access the "words" entry:
- String call = join(loadStrings( serviceURL + "/"+lastTimeStamp ), "");
- JSON results = JSON.parse(call);
- println (results);
- String ts = results.getString("timestamp");
- println (results.getArray("words").length());
Any called to any method of the library throw me errors about objects not being visible.
Any help is appreciated
BTW: I'm reading everywhere that there are JSON functionality integrated in the processing now, but where I can read about them?
1