toJSON

convert a bool to a JSONValue

Examples

Serialize a boolean.

assert(false.toJSON == JSONValue(false));
assert(true.toJSON == JSONValue(true));

Meta