restapi.rest.response.ExtendedJSONEncoder

class restapi.rest.response.ExtendedJSONEncoder(app)[source]
Parameters:

app (Flask)

__init__(app)
Parameters:

app (Flask)

Return type:

None

Methods

__init__(app)

dump(obj, fp, **kwargs)

Serialize data as JSON and write to a file.

dumps(obj, **kwargs)

Serialize data as JSON.

load(fp, **kwargs)

Deserialize data as JSON read from a file.

loads(s, **kwargs)

Deserialize data as JSON.

response(*args, **kwargs)

Serialize the given arguments as JSON, and return a Response object with the application/json mimetype.