Cookie

open class Cookie

Convert a web browser cookie specification to a JSONObject and back. JSON and Cookies are both notations for name/value pairs. See also: https://tools.ietf.org/html/rfc6265

Author

JSON.org

Functions

Link copied to clipboard
open fun escape(string: String): String
Produce a copy of a string in which the characters '+', '%', '=', ';' and control characters are replaced with "%hh".
Link copied to clipboard
open fun toJSONObject(string: String): JSONObject
Convert a cookie specification string into a JSONObject.
Link copied to clipboard
open fun unescape(string: String): String
Convert %hh sequences to single characters, and convert plus to space.