91
Backbone.js Collection collection.toJSON()
It returns an array containing the attributes hash of each model in the collection using JSON format.
Syntax:
Parameter explanation:
options: It includes options as collection instance and convert it into JSON format.
Let’s take an example.
See this example: