internal.tojson

toJSON!T converts a instance of T to a JSONValue

Members

Functions

toJSON
JSONValue toJSON(T val)

convert a bool to a JSONValue

toJSON
JSONValue toJSON(T val)

convert a string to a JSONValue

toJSON
JSONValue toJSON(T val)

convert a floating point value to a JSONValue

toJSON
JSONValue toJSON(T val)

convert a signed integer to a JSONValue

toJSON
JSONValue toJSON(T val)

convert an unsigned integer to a JSONValue

toJSON
JSONValue toJSON(T val)

convert an enum name to a JSONValue

toJSON
JSONValue toJSON(T args)

convert a homogenous array into a JSONValue array

toJSON
JSONValue toJSON(T args)

convert a set of heterogenous values into a JSONValue array

toJSON
JSONValue toJSON(T map)

convert a associative array into a JSONValue object

toJSON
JSONValue toJSON(T obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta