JSONObject function ( String arg0 ) { JSONObject loc0 = new JSONObject ( ) ; JSONTokener loc1 = new JSONTokener ( arg0 ) ; while ( loc1 . more ( ) ) { String loc2 = Cookie . unescape ( loc1 . nextTo ( '=' ) ) ; loc1 . next ( '=' ) ; loc0 . put ( loc2 , Cookie . unescape ( loc1 . nextTo ( ';' ) ) ) ; loc1 . next ( ) ; } return loc0 ; }
convert a cookie list into a jsonobject . a cookie list is a sequence of name/value pairs . the names are separated from the values by ' = ' . the pairs are separated by ' ; ' . the names and the values will be unescaped , possibly converting ' + ' and ' % ' sequences . to add a cookie to a cooklist , cookielistjsonobject.put cookiejsonobject.getstring `` name '' , cookiejsonobject.getstring `` value '' ; concode_field_sep PlaceHolder placeHolder concode_field_sep String toString