publicclassGetInfo{publicstaticvoidmain(String[]args){Stringurl="http://localhost/phpinf/xml.php?plugin=complete&json"; /* try { String GenJson = IOUtils.toString(new URL(url)); JSONObject GenJsonObject = (JSONObject) JSONValue.parseWithException(GenJson); // get the title System.out.println(GenJsonObject.get("Vitals")); // get the data JSONArray genreArray = (JSONArray) GenJsonObject.get("@attributes"); // get the first genre JSONObject GetIP = (JSONObject) genreArray.get(0); System.out.println(GetIP.get("IPAddr"));}catch(IOException|ParseExceptione){e.printStackTrace();}}
}
But is not working, how i can read this using java thanks
Last edit: Chacaman 2015-09-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi, how i can get mount point information i test this but not luck
jsonp.FileSystem['Mount MountPointID'][1]['@attribures'].Free
jsonp.FileSystem['MountPointID'][1]['@attribures'].Free
but is not working
jsonp.FileSystem['Mount'][1]['@attributes']
Last edit: Mieczysław Nalewaj 2015-10-31
nice, is working one more question i have this java code but is not working
import java.io.IOException;
import java.net.URL;
import org.apache.commons.io.IOUtils;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
import org.json.simple.parser.ParseException;
}
But is not working, how i can read this using java thanks
Last edit: Chacaman 2015-09-08
View errors in debug console