Version: v0.8.1 - Beta.  We welcome contributors & feedback.

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}` 》