use json_object_set_new instead of json_object_set