Closed hsie closed 6 years ago
Can you provide me the files so I can use it to debug the issue?
@hsie
Your jsonIrCode file looks different than mine, did you get it from the e-Control app , is it the latest version of the app ?
It looks like it is missing }] in the end of the file even if you add it it is still not in the right format, i will continue to investigate it
@hsie Ok figured it out, your "jsonIrCode" file is incomplete and is not a valid json format
you should add ]}]
to the end of the file
Your file:
Fix should look like this:
You can use https://jsonlint.com/ to verify if the file is in the correct format.
after I choose the id to proceed on the dumping, the error below appears, would appreciate it if you can help to figure out, thanks in advance
+++++++++++++++++++++++++ Traceback (most recent call last): File "getBroadlinkSharedData.py", line 65, in
jsonIrCodeData = json.loads(jsonIrCode)
File "/usr/local/lib/python2.7/dist-packages/simplejson/init.py", line 516, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting ',' delimiter or ']': line 1 column 95017 (char 95016)