Skip to contents

Converts pages and blocks to a JSON-compatible format and writes the data to a file.

Usage

export_to_json(data, file_name = "tiddlers.json", use_streams = FALSE)

Arguments

data

A list containing pages and blocks data.tables.

file_name

The name of the JSON file to write to. Defaults to "tiddlers.json".

Value

NULL. The JSON file is written to disk as a side effect.

Details

The function processes pages and blocks to ensure compatibility with the JSON format. Column names are modified to match the required format, and the combined data is written to the specified file.