JSON5

JSON5 is an extension of JSON designed to be more human-friendly while staying close to JSON.

What json5 add compare to json - Comments - multi line string - hex - trailing commas

pip install json5
1
2
3
4
5
6
import json5

with open("config.json5") as f:
    data = json5.load(f)

print(data["name"])   # diffbot