Home » Backbone.js model.parse()

Backbone.js model.parse()

by Online Tutorials Library

Backbone.js model.parse()

The Backbone.js parse model is used by the server to return the model’s data by passing through the response object. It represents the data in JSON format.

Syntax:

Parameter explanation:

response: It is passed using response raw object and returns attributes to be set on the model.

options: It represents data in JSON format if the option is true.

Let’s take an example.

See this example:

Test it Now

Output:

Save the above code in parse.html file and open this file in a new browser.

BackboneJS parse Model

Next TopicBackbone.js Clone

You may also like