can.toJSON

  • page
 

util.toJSON(o, replacer, space, recurse)

Parameters

  1. o {*}

  2. replacer {*}

  3. space {*}

  4. 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.