Json Module
Serializes a value to JSON text and back, and writes, reads and deletes the JSON cache files.
Functions and values
| Function or value |
Description
|
Full Usage:
cache p o
Parameters:
string
-
The path to the file
o : 'a
-
The object to serialize
Type parameters: 'a |
Serialize an object to a JSON string and write it to a file
|
Full Usage:
clearCache useDemo
Parameters:
bool
-
Whether to clear the demo cache files
|
Clear the cache files for either a product or a demo version of the cache.
|
Full Usage:
deSerialize s
Parameters:
string
-
The JSON string to deserialize
Returns: 'T
Type parameters: 'T |
Deserializes a JSON string to an object
|
Full Usage:
getCache p
Parameters:
string
-
The path to the file
Returns: 'T
Type parameters: 'T |
Read a cache file and deserialize it to an object
|
Full Usage:
serialize x
Parameters:
'a
-
The object to serialize
Returns: string
Type parameters: 'a |
Serializes an object to a JSON string
|
GenPRES