FileJson Module
Module for saving ERACS JSON files.
- class TEracsFileJson(ADataConverter)
File class for saving ERACS JSON formatted files. The saving is done using a converter class to convert an XML object to a JSON object, therefore it descends from TEracsFileXml.
- Inherits
- Save(AFilePathAndName, AResultsCallback)
Converts the data to JSON, by creating an XML object internally, then calls the ConvertXmlDoc2Json procedure from the XML2JSON_DLL.dll file.
- Required
lxml python library.
- Parameters
AFilePathAndName (str) – The full file path and name to save to.
- Returns
True if successful.
- Raises
TEracsDataError – If failed to save to XML first, or failed to use the converter DLL.