What is the function of toJSON ?

 

Report
Question
16 views

Please explain why do you think this question should be reported?

Report Cancel

It returns a shallow copy of the model’s attribute for JSON stringification. This function is used for persistence, serialization and for augmentation before being sent to the server. This does not return a JSON string
 

Please follow and like us:

About the Author