5152535455565758596061
* @throws JSONException */ public static JSONObject toJSONObject(String string) throws JSONException { JSONObject o = new JSONObject(); JSONTokener x = new JSONTokener(string); while (x.more()) { String name = Cookie.unescape(x.nextTo('=')); x.next('='); o.put(name, Cookie.unescape(x.nextTo(';'))); x.next(); }
8990919293949596979899
JSONTokener x = new JSONTokener(string); o.put("name", x.nextTo('=')); x.next('='); o.put("value", x.nextTo(';')); x.next(); while (x.more()) { n = unescape(x.nextTo("=;")); if (x.next() != '=') { if (n.equals("secure")) { v = Boolean.TRUE; } else {