sdmon icon indicating copy to clipboard operation
sdmon copied to clipboard

Json can be invalid due to missing commas

Open EternityForest opened this issue 3 years ago • 1 comments

In some cases, like when using a normal SD card that doesn't support the instructions, you get output like this, where commas are missing.

{
"version": "v0.4.0 (6778785) armv7",
"date": "2022-07-26T10:22:21.000Z",
"device":"/dev/mmcblk0",
"read_via_cmd56_arg_1":"not implemented: Operation timed out"
"idata.response[]":"0x900 0x00 0x00 0x00",
"error2":"2nd CMD56 CALL FAILED: Operation timed out"
}

EternityForest avatar Jul 26 '22 17:07 EternityForest

Thanks for reporting. This particular one should already be fixed in v0.4.1 and above. Actually I should implement some helper function to generate the proper JSON output from an array, then errors like this one would be gone...

Ognian avatar Jul 27 '22 08:07 Ognian