msl.io.readers.json_ module
Read a file that was created by JSONWriter.
- class msl.io.readers.json_.JSONReader(file)[source]
Bases:
ReaderRead a file that was created by
JSONWriter.- static can_read(file, **kwargs)[source]
Checks if the text
MSL JSONWriteris in the first line of the file.
- read(**kwargs)[source]
Read the file that was created by
JSONWriterIf a
Metadatakey has a value that is alistthen the list is converted to anndarraywithdtype=object- Parameters:
**kwargs – Accepts encoding and errors keyword arguments which are passed to
open(). The default encoding value is'utf-8'and the default errors value is'strict'. All additional keyword arguments are passed to json.loads.