After changing the file, I get exception ValueError: No JSON object could be decoded
Reason: The file content changed from utf-8 encoding without BOM to utf-8 encoding with BOMsolution:
1. Method 1: Open the file with nodpad++---"Encoding----"Convert to UTF-8 without BOM encoding format----"Save
2. Open the file with a hex editor and delete the first three hex characters