json.js

Summary
json.js
bbop.rest.response.jsonGeneric BBOP handler for dealing with the gross parsing of responses from a REST JSON server.
Functions
jsonContructor for a REST JSON response object.

bbop.rest.response.json

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).

Summary
Functions
jsonContructor for a REST JSON response object.

Functions

json

bbop.rest.response.json = function(json_data)

Contructor for a REST JSON response object.

The constructor argument is an object, not a string.

Arguments

json_datathe JSON object as a string (as returned from a request)

Returns

rest response object

bbop.rest.response.json = function(json_data)
Contructor for a REST JSON response object.
Close