json.js | |
bbop. | Generic BBOP handler for dealing with the gross parsing of responses from a REST JSON server. |
Functions | |
json | Contructor for a REST JSON response object. |
Generic BBOP handler for dealing with the gross parsing of responses from a REST JSON server.
It will detect if the incoming response is a string, and if so, try to parse it to JSON. Otherwise, if the raw return is already an Object, we assume that somebody got to it before us (e.g. jQuery’s handling).
Contructor for a REST JSON response object.
bbop.rest.response.json = function( json_data )