0
我想抓住一个JSON对象的十六进制值,但继续得到错误构造函数JSONobject(对象)不可见。我正在使用处理版本2.1。构造函数JSONobject(对象)不可见
String baseURL = "http://www.colr.org/json/tag/";
String[] keyword = {"county"};
void setup(){
getColor();
};
void draw(){
};
void getColor(){
for (int i = 0; i < keyword.length; i++){
String request = baseURL + keyword[i];
try{
JSONObject colorData = new JSONObject(join(loadStrings(request),""));
JSONArray results = colorData.getJSONArray("results");
}
catch(JSONException e){
println("error");
};
};
};