You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to parse the json like the following one by the newest version 1.7.1.
{"1":"457899683877105664","2":2084,"3":{"safe":0.11111111,"blessed":0.11111111,"easter":0.11111111,"hope":0.11111111},"4":"I hope everyone has a safe and blessed Easter :) 💗"}
My Code is as below:
public class TopicHandler {
private static final DslJson.Settings settings = Settings.withRuntime().allowArrayFormat(true).includeServiceLoader();
private static final DslJson<Object> json = new DslJson<Object>(settings);
.....
public void handle(RoutingContext routingContext) {
Map<String, Object> mapContent2 = json.deserialize(Map.class, str.getBytes(), str.getBytes().length);
System.out.println(mapContent2.get("4").toString());
}
}
It shows me a strange character after the emoji.
I hope everyone has a safe and blessed Easter :) 💗
Do you know why? It seems every emoji will be with a strange character after deserialization
The text was updated successfully, but these errors were encountered:
Hi, I tried to parse the json like the following one by the newest version 1.7.1.
My Code is as below:
It shows me a strange character after the emoji.
Do you know why? It seems every emoji will be with a strange character after deserialization
The text was updated successfully, but these errors were encountered: