有没有办法防止Ruby的
我有一个JSON对象如下:
JSON.pretty_generate()
方法转义Unicode字符?我有一个JSON对象如下:
my_hash = {"my_str" : "\u0423"};
运行JSON.pretty_generate(my_hash)
返回的值为\\u0423
。
是否有任何方法可以防止这种行为?