Hi,
I’m trying to send serial JSON data from an Arduino to Processing. I found documentation on reading JSON data from a file, but I’d like to read the JSON data from a Serial input. I tried the following code:
val = myPort.readString();
if (val != null) {
data = loadJSONObject(val);
}
However, with the above code I get the error:
The file is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
How can I parse Serial JSON data? Any help would be greatly appreciated.