json-iterator / java

jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go
http://jsoniter.com/
MIT License
1.51k stars 518 forks source link

The tilde (~) character appears incorrectly serialized #299

Closed yv13 closed 2 years ago

yv13 commented 3 years ago

To illustrate with a test case:

var o = new HashMap<String,Object>();
o.put("tilde", "~");
assertEquals("{\"tilde\":\"~\"}", JsonStream.serialize(new Config.Builder().escapeUnicode(false).build(), o));
org.junit.ComparisonFailure: 
Expected :{"tilde":"~"}
Actual   :{"tilde":"��"}
gokce-nur00 commented 2 years ago

Is is still open?