Json.encode
Json.encode($data) -> JsonTypeString
Description
Convert THT data to a JsonTypeString.
$author = { name: 'Thoreau' born: 1817 } Json.encode($author) //= 《 JsonTypeString `{"name":"Thoreau","born":1817}` 》
Convert THT data to a JsonTypeString.
$author = { name: 'Thoreau' born: 1817 } Json.encode($author) //= 《 JsonTypeString `{"name":"Thoreau","born":1817}` 》