There is a known issue with zip Static Resources that prevents files with whitespace in their names from being extracted (I suppose the Static Resource web service on SFDC cannot handle whitespaces). In light of this, what options do we have to access JSON files (containing whitespace in their names) from a zip Static Resource in Apex?
Visualforce is suffering from the same issue so I cannot use Page.Name.getContent()
. In Aura the same issue is present (since we'd need to make an explicit GET request to the Static Resource web service). In LWC the platformResourceLoader
module only offers loadScript
and loadStyle
. There' nothing to load a JSON file.