@Override
public void call(YQLResult r) {
JsObject o = r.query().results().objGetObj("json"); //type, count, modules, }
JsArray<JsObject> modules = o.objGetObj("modules").cast();
JsObject module0 = modules.get(0);
console.log("first module title is "+module0.objGetString("title"));
}
};
YQLParams yqlParams2 = YQLParams.create().env("http://datatables.org/alltables.env");
yqlParams2.format("json");
YQL yql2 = Y.newYQL(query2, yqlCallback2, yqlParams2);