Code example for JSONObject

Methods: put, toString

0
 
    static protected String OK; 
     
    static { 
        try { 
            JSONObject o = new JSONObject();
            o.put("status","ok");
            OK = o.toString();
        } catch (JSONException e) {
            // not going to happen; 
        } 
    } 
     
    static public final long LOCK_DURATION = 60 * 1000; // 1 minute
    static public final long USER_DURATION = 5 * 60 * 1000; // 1 minute
    static public final long LOCK_EXPIRATION_CHECK_DELAY = 5 * 1000; // 5 seconds
     
    protected HttpClient httpclient;
 
    protected boolean developmentMode;