toJSON

convert a signed integer to a JSONValue

Examples

Serialize a signed integer.

auto j3 = toJSON(41);
assert(4.toJSON == JSONValue(4));
assert(4L.toJSON == JSONValue(4L));

Meta