Code example for JSONObject

Methods: getString

0
        return node;
    } 
     
    static protected FreebaseProperty reconstructProperty(JSONObject o) throws JSONException {
        return new FreebaseProperty( 
            o.getString("id"),
            o.getString("name")
        ); 
    } 
     
    static protected FreebaseType reconstructType(JSONObject o) throws JSONException {
        return new FreebaseType( 
            o.getString("id"),
            o.getString("name")
        ); 
    } 
     
    static protected FreebaseTopic reconstructTopic(JSONObject o) throws JSONException {
        return new FreebaseTopic( 
            o.getString("id"),
            o.getString("name")