Quick answer

Validate JSON files, find missing commas, broken quotes, invalid characters, and bad copied content from Android editors.

JSON Errors is a focused guide for the exact situation described below.

For JSON Errors, focus on files, paths, storage and backups and use the output to decide the next small fix instead of reinstalling everything.

What to check

Copyable command

For JSON Errors, replace placeholders only when they appear in the command.

python -m json.tool data.json > /tmp/checked.json
python - <<'PY'
import json
json.load(open("data.json", encoding="utf-8"))
print("JSON OK")
PY

Read the output

  1. python -m json.tool data.json > /tmp/checked.json — runs the script directly so the first traceback can be read for JSON Errors.
  2. python - <<'PY' — runs the script directly so the first traceback can be read for JSON Errors.
  3. import json — checks the part of the files, paths, storage and backups workflow that usually causes this issue for JSON Errors.
  4. json.load(open("data.json", encoding="utf-8")) — checks the part of the files, paths, storage and backups workflow that usually causes this issue for JSON Errors.
  5. print("JSON OK") — checks the part of the files, paths, storage and backups workflow that usually causes this issue for JSON Errors.
  6. PY — checks the part of the files, paths, storage and backups workflow that usually causes this issue for JSON Errors.

Fix in a safe order

  1. Save the JSON Errors output before editing files.
  2. Change one thing at a time while testing JSON Errors.
  3. If the JSON Errors error changes, read the new clue instead of repeating the old fix.

Common mistakes

Guide did not solve it?

If json errors the file path still does not make sense, send a screenshot of pwd, ls, and the error through the Store.

Open Store / Get Help

Related Assistance pages