opihiexarata.library.json module

A collection of functions to deal with JSON input and handling. For the most part, these functions are just wrappers around the built-in JSON handling.

opihiexarata.library.json.dictionary_to_json(dictionary: dict) str[source]

Converts a Python dictionary to a JSON string.

Parameters:

dictionary (dict) – The Python dictionary which will be converted to a JSON string.

Returns:

json_string – The JSON string.

Return type:

str

opihiexarata.library.json.json_to_dictionary(json_string: str) dict[source]

Converts a JSON string to a dictionary.

Parameters:

json_string (str) – The JSON string.

Returns:

dictionary – The Python dictionary which will be converted to a JSON string.

Return type:

dict