Show JSON's parsing error message

AnkiWeb addon 2061352905

Displays JSON parsing errors when importing configuration, helping debug and correct invalid JSON while printing the previous config so it isn't lost.
AI-generated summary; may contain mistakes.

developer-tools

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
1 (πŸ‘ 1 Β· πŸ‘Ž 0)
Updated
2018-11-21
Anki versions
unknown
Description language
en

Maintenance

abandoned

  • Last update or commit was 2251 days before the snapshot (2020-08-02).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2018-11-21
History across monthly snapshots

Loading…

Similar addons

anki_ruby_support

Adds customizable ruby furigana/pinyin annotations to selected Anki editor text via toolbar or shortcut, with adjustable font size, color, configuration, and troubleshooting.

formattingshortcuts

Rating 1 πŸ‘ 1 Β· πŸ‘Ž 0 Anki 2.1.1~ Updated 2025-01-14
AnkiOCR

Generates searchable OCR text from images in Anki notes, supporting batch processing, multiple languages, and easy removal or output to a separate field.

card-creationnote-managementsearchbeta

Rating 45 πŸ‘ 42 Β· πŸ‘Ž 3 ⭐ 19 Updated 2021-09-19
Tag Analytics

Analyzes tag usage and card distribution in Anki, offering customizable settings, review insights, and debug logging to optimize tag organization and study patterns.

statisticstagging

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2025-05-20
Quiet Sync Errors (macOS)

Suppresses background sync error dialogs on macOS to prevent Dock icon bouncing, deferring errors until Anki is active; optional debug logging requires restart after config changes.

bugfix-workaround

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 Anki 2.1.1~ Updated 2026-02-07

README

Show JSON error message when importing

Rationale

For some reason, anki use json for config. If json is not parseable, (which is often, since it may be hand-written), it generates an error-message. And Anki choose to hide it, considering instead that the config is empty !

Usage

This add-on correct this problem by showing json's error message, allowing the user to correct their JSON. It also print the past config, so if you add-on destroy it, it is not lost.

Internal

This add-on change AddonManager.addonMeta and AddonManager.addonConfigDefaults in module aqt.addons. It does not call the last version, and thus is incompatible with any other add-ons modifying this.

Links, licence and credits

Key Value
Copyright Arthur Milchior arthur@milchior.fr
Based on Anki code by Damien Elmes anki@ichi2.net
License GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
Source in https://github.com/Arthur-Milchior/anki-debug-json
Addon number 2061352905