ext/json/ext/parser/parser.rl in json_pure-2.3.0 vs ext/json/ext/parser/parser.rl in json_pure-2.3.1

- old
+ new

@@ -136,9 +136,10 @@ char *np = JSON_parse_value(json, fpc, pe, &v, current_nesting); if (np == NULL) { fhold; fbreak; } else { if (NIL_P(json->object_class)) { + OBJ_FREEZE(last_name); rb_hash_aset(*result, last_name, v); } else { rb_funcall(*result, i_aset, 2, last_name, v); } fexec np;