Package hm :: Package app :: Package lib :: Module json_utils
[hide private]
[frames] | no frames]

Module json_utils

source code

Functions [hide private]
 
get_item(item_id, item_type) source code
 
get_type(item) source code
 
get_params(dict, *args, **kwargs)
Tries to extract parameters from the provided dict for each keyword. If a parameter isn't found, the keyword's value is returned.
source code
 
default_fields(obj) source code
 
get_field(obj, path) source code
 
get_data(obj, fields=None)
Given an object and a structured list of fields, returns a dict, list, int, or str.
source code
 
get_json(obj, fields=None) source code
 
to_json(obj) source code
 
JSON_API(definition) source code
 
make_json_api(definition) source code
 
json_api(definition) source code
 
json_response(data) source code