json_array_append_new consumes ref, don't free