toJSON (options) Object
Use DS.JSONSerializer to get the JSON representation of a record.
toJSON takes an optional hash as a parameter, currently supported options are:
-
includeId:trueif the record's ID should be included in the JSON representation.
Parameters:
-
options
Object
Returns:
-
Object - A JSON representation of the object.
Please login to continue.