Possible fix, for testing.
tl;dr: if the user-supplied value and the db column are both numbers (jsonObject->type == JSON_NUMBER, get_primitive(field) == "number") then don't quote. Otherwise, quote.
Possible fix, for testing.
tl;dr: if the user-supplied value and the db column are both numbers (jsonObject->type == JSON_NUMBER, get_primitive( field) == "number") then don't quote. Otherwise, quote.