can.toJSON page source util.toJSON(o, replacer, space, recurse) Parameters o {*} replacer {*} space {*} recurse {*} can.toJSON( json-serializble ) Converts the given argument into a JSON respresentation. If an object has a "toJSON" function, that will be used to get the representation. Non-integer/string keys are skipped in the object, as are keys that point to a function. json-serializble: The thing to be converted.
Converts the given argument into a JSON respresentation.
If an object has a "toJSON" function, that will be used to get the representation. Non-integer/string keys are skipped in the object, as are keys that point to a function.
json-serializble: The thing to be converted.