tamaki.mes.backup.compare.extractJsonFromZip
Description
Extracts all JSON files from a ZIP uploaded via the Perspective File Upload component. It reads the
uploaded file's bytes and delegates to extractJsonFromBytes.
Syntax
tamaki.mes.backup.compare.extractJsonFromZip(uploadedFile)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
uploadedFile | Object | False | The event.file object from a File Upload onFileReceived event. |
Returns
A Dict mapping each JSON file name (without the .json extension) to its parsed contents.
Code Examples
# In a File Upload component's onFileReceived event
self.view.custom.oldFileName = event.file.name
self.view.custom.oldJsonData = tamaki.mes.backup.compare.extractJsonFromZip(event.file)