JSON
Parse and serialize JSON data
Input/output
The json driver expects data to be provided via IO.
It will parse to a number of types depending on the input:
JSON3.ObjectJSON3.ArrayStringNumberBooleanNothing
If you do not wish to impose any expectations on the parsed type, you can ask for the data of type Any.
When writing, any type compatible with JSON3.write can be used directly, with any storage backend supporting IO.
Required packages
JSON3
Parameters
pretty: Whether to useJSON3.prettywhen writing
Usage examples
[[sample.loader]]
driver = "json"