It is used to handle the requests encoded with application/json by setting the method to true.
Backbone.emulateJSON = true
Let us carry out the following steps to see how the above code works −
Save the above code in the backbone-emulatejson.htm file.
Open this HTML file in a browser.