maci.jsondump
dumps data to a file as json
dumping a file
Dumps the corresponding python data types to a file formatted as JSON. Nothing is returned. Creates a new or overwrites an existing file by default (See append parameter to change mode).
Basic Example of dumping data to a file using default positional parameters
maci.jsondump('mydata.json', data)
In this example, we simply dump data to a file using the jsondump function and pass a string of the filepath to the file as the first argument to the function, then pass the data as the second argument to the function.
parameters & arguments
Describes all parameter functionality and accepted data types
This function uses the native json library shipped with the python standard library for its underlying functionality. For more information on the json library, visit: https://docs.python.org/3/library/json.html
Last updated