Functions
Const clearJSONFile
- clearJSONFile(name: string): any
Const deleteElementFromJSONFile
- deleteElementFromJSONFile(name: string, elementPath: string): any
Parameters
name: string
elementPath: string
Returns any
Const elementExistsInJSONFile
- elementExistsInJSONFile(name: string, elementPath: string): any
Parameters
name: string
elementPath: string
Returns any
Const loadJSONFileFromStorage
- loadJSONFileFromStorage(name: string): void
Const readNumberFromJSONFile
Parameters
name: string
elementPath: string
Returns any
Const readStringFromJSONFile
Parameters
name: string
elementPath: string
Returns any
Const unloadJSONFile
- unloadJSONFile(name: string): void
Const writeNumberInJSONFile
- writeNumberInJSONFile(name: string, elementPath: string, val: any): any
Parameters
name: string
elementPath: string
val: any
Returns any
Const writeStringInJSONFile
- writeStringInJSONFile(name: string, elementPath: string, str: any): any
Parameters
name: string
elementPath: string
str: any
Returns any
Functions to store and load basic values (strings or numbers), organized into objects:
Root/Some folder/MyValueName
), where each segment is separated by a slash.These objects are persisted into the environment
localStorage
- which might not always be available (if not, objects won't be persisted).