anki_to_json: Export collection as JSON
Description
Full collection export as structured JSON for web dashboards or custom apps.
Usage
anki_to_json(
path = NULL,
profile = NULL,
output_path = "anki_collection.json",
include_revlog = TRUE,
include_content = TRUE
)
Value
Invisibly returns the exported data structure
Arguments
- path
Path to collection.anki2 (auto-detected if NULL)
- profile
Profile name (first profile if NULL)
- output_path
Path for output JSON file
- include_revlog
Whether to include review log (can be large)
- include_content
Whether to include card content
Examples
Run this codeif (FALSE) {
anki_to_json(output_path = "collection.json")
}
Run the code above in your browser using DataLab