Hello,
I would like to retrieve some online JSON data, and I dont manage.
first, I cannont print the row data ;
then, what are the equivalents of getJSONObject
and getJSONArray
from Processing ?
Indeed I have to go at this path facet_counts>facet_fields
var jsonData;
function preload() {
var codeLab = '15218';
var url = 'https://api.archives-ouvertes.fr/search/?q=*:*&rows=0&facet=true&facet.field=structHasAuthIdHal_fs&facet.prefix=' +
codeLab + '_&wt=json&facet.limit=30';
jsonData = loadJSON(url);
}
function setup() {
noLoop();
}
function draw() {
print(jsonData); // return only [object Object]
// go to this array : to facet_counts>facet_fields position>structHasAuthIdHal_fs
}
my goal is to translate this Processing sketch.
thanks.