ext/json/ext/parser/parser.rl in json_pure-1.6.6 vs ext/json/ext/parser/parser.rl in json_pure-1.6.7

- old
+ new

@@ -703,9 +703,10 @@ source = rb_convert_type(source, T_STRING, "String", "to_str"); if (!json->quirks_mode) { source = convert_encoding(StringValue(source)); } json->current_nesting = 0; + StringValue(source); json->len = RSTRING_LEN(source); json->source = RSTRING_PTR(source);; json->Vsource = source; return self; }