allensdk.core.json_utilities module¶
-
class
allensdk.core.json_utilities.
JsonComments
[source]¶ Bases:
object
-
allensdk.core.json_utilities.
json_handler
(obj)[source]¶ Used by write_json convert a few non-standard types to things that the json package can handle.
-
allensdk.core.json_utilities.
read_url_get
(url)[source]¶ Transform a JSON contained in a file into an equivalent nested python dict.
Parameters: - url : string
where to get the json.
Returns: - dict
Python version of the input
- Note: if the input is a bare array or literal, for example,
- the output will be of the corresponding type.
-
allensdk.core.json_utilities.
read_url_post
(url)[source]¶ Transform a JSON contained in a file into an equivalent nested python dict.
Parameters: - url : string
where to get the json.
Returns: - dict
Python version of the input
- Note: if the input is a bare array or literal, for example,
- the output will be of the corresponding type.