omas.save_omas_json¶
- omas.save_omas_json(ods, filename, objects_encode=None, **kw)[source]¶
Save an ODS to Json
- Parameters
ods – OMAS data set
filename – filename or file descriptor to save to
objects_encode – how to handle non-standard JSON objects * True: encode numpy arrays, complex, and uncertain * None: numpy arrays as lists, encode complex, and uncertain * False: numpy arrays as lists, fail on complex, and uncertain
kw – arguments passed to the json.dumps method