I found this is due to the new function isJSON which is now used in the fromJSON function to check json validity.
The isJSON documentation says that json string must be enclosed between {} why ?
Example:
Code: Select all
print(domoticz.utils.isJSON('{["a","b"]}') and 'true' or 'false') => true, while {["a","b"]} is not a correct json
print(domoticz.utils.isJSON('["a","b"]') and 'true' or 'false') => false, while ["a","b"] is a correct json