One may have a need to send such a request to:
- Read an existing record
- Update a record
- Load a collection
As illustrated in the code, an anonymous function is defined for the success: parameter. This is the code that will be automatically executed upon a response being received and is capable of interacting with the JSON response -- found in the data variable.
Note that a similar approach can also be used to define an error anonymous.