I am trying to load .ndjson
files from Google Cloud to Processing 3.4 so that I can select one of the file from the cloud and use it.
This is the code I tried:
import cbl.quickdraw.*;
JSONObject json;
QuickDraw qd;
void setup() {
json = loadJSONObject("https://console.cloud.google.com/storage/browser/quickdraw_dataset/full/simplified/");
qd = new QuickDraw(this, json.getString("brain"));
}
void draw() {
qd.create(width/2, height/2, width/2, height/2);
}
and got an error as json object text must begin with {
.