Bangle.js: Put JSON keys in quotes

this allows the watch to work with gadgetbridge while 'programmable' is set to off
This commit is contained in:
Simon Sievert 2023-07-29 14:33:16 +02:00
parent e3bc3742a8
commit 0ae14fb80a
No known key found for this signature in database
GPG Key ID: 2A42AC2045E073E1
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
} catch (JSONException e) {
LOG.warn("jsonToString object error: " + e.getLocalizedMessage());
}
json += key+":"+jsonToStringInternal(o);
json += "\""+key+"\":"+jsonToStringInternal(o);
if (iter.hasNext()) json+=",";
}
return json+"}";