calls toJSON with a default set of arguments

Usage

json(obj, ...)

Arguments

obj
object to pass to toJSON
...
other arguments to pass to toJSON

Description

- sets the default number of digits to 22 to retain maximum precisioin - removes newlines and spaces from json string