0
What is the function of toJSON ?

Open 1 Answers 26 Views Technology

What is the function of toJSON ?

1 Answer

0

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

by (277k points)
...