Save to a File
ASTER::ACTION::JSON::Save to file with Text | Binary.
Saving Data in Memory to a File
When saving data to a file, you can select the save format.
-
Text format or binary format; binary defaults to MessagePack.
-
If you select the text format, can optionally choose to apply Pretty-Print.
Regarding File Path Specification
Saving files in areas without access permissions is not possible.
It is also possible to target important files and deliberately overwrite them to destroy them. When deciding where to save data, please handle it carefully by creating a dedicated folder for data storage directly under the application executable file, and by using relative directory paths instead of full paths.
Parameter.1
File path
"./save/jsonFormatText.json" If a nonexistent directory path is specified, all processing is canceled.
- Please create the directory first before executing the file save.
Parameter.2
Save Option Settings
When specifying options for Text and Pretty-Print settings:
" false , true "When specifying Text without Pretty-Print:
" false , false "In the case of binary saving, the Pretty-Print setting becomes invalid even if set to true.
" true , false "Parameters have format check functionality, so a regular expression error will occur if the content is invalid.
-
You are free to use whitespace for readability.
-
Be sure to use lowercase letters. You cannot write
" True , FALSE ".