JSON::create¶
Description¶
This command creates a new, empty JSON cache instance. It can then be filled with any JSON content
and rendered. It will be deleted when no longer referenced by a Tcl variable.
Examples¶
when JSON_REQUEST {
set cache [JSON::create]
set rootval [JSON::root $cache]
JSON::set $rootval string HelloWorld
set rendered [JSON::render $cache]
}