--- JSON-XS/XS.xs 2013/10/25 20:19:57 1.117 +++ JSON-XS/XS.xs 2013/10/25 20:27:57 1.118 @@ -2073,27 +2073,21 @@ PROTOTYPES: ENABLE void encode_json (SV *scalar) - ALIAS: - to_json_ = 0 - encode_json = F_UTF8 PPCODE: { JSON json; json_init (&json); - json.flags |= ix; + json.flags |= F_UTF8; PUTBACK; scalar = encode_json (scalar, &json); SPAGAIN; XPUSHs (scalar); } void decode_json (SV *jsonstr) - ALIAS: - from_json_ = 0 - decode_json = F_UTF8 PPCODE: { JSON json; json_init (&json); - json.flags |= ix; + json.flags |= F_UTF8; PUTBACK; jsonstr = decode_json (jsonstr, &json, 0); SPAGAIN; XPUSHs (jsonstr); }