See also
public function toJSON(key:String = null):Object
Convert the class to a JSON object.
Parameters
key:String
null
Object