exportAllAsJson

Serializes exportAll to a pretty-printed JSON string.

The result can be written to a file, stored in a database, or passed directly to importAllFromJson.