Same error with (no error but value not written)
Code:
new JSON:tmpObj = json_init_object();
json_object_set_number(tmpObj,key,1);
new JSON: g_jObject = json_init_object();
json_object_set_value(g_jObject, "test", tmpObj, false);
json_free(g_jObject );
json_free(tmpObj );
but with less often