question: public static String toString ( JSONObject jo ) throws JSONException { StringBuilder sb = new StringBuilder ( ) ; sb . append ( escape ( jo . getString ( "name" ) ) ) ; sb . append ( "=" ) ; sb . append ( escape ( jo . getString ( "value" ) ) ) ; if ( jo . has ( "expires" ) ) { sb . append ( ";expires=" ) ; sb . append ( jo . getString ( "expires" ) ) ; } if ( jo . has ( "domain" ) ) { sb . append ( ";domain=" ) ; sb . append ( escape ( jo . getString ( "domain" ) ) ) ; } if ( jo . has ( "path" ) ) { sb . append ( ";path=" ) ; sb . append ( escape ( jo . getString ( "path" ) ) ) ; } if ( jo . optBoolean ( "secure" ) ) { sb . append ( ";secure" ) ; } return sb . toString ( ) ; }
target:  Convert a JSONObject into a cookie specification string. The JSONObject must contain "name" and "value" members. If the JSONObject contains "expires", "domain", "path", or "secure" members, they will be appended to the cookie specification string. All other members are ignored.