{"action":"opened","issue":{"url":"https://api.github.com/repos/json-iterator/java/issues/207","repository_url":"https://api.github.com/repos/json-iterator/java","labels_url":"https://api.github.com/repos/json-iterator/java/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/json-iterator/java/issues/207/comments","events_url":"https://api.github.com/repos/json-iterator/java/issues/207/events","html_url":"https://github.com/json-iterator/java/issues/207","id":364921665,"node_id":"MDU6SXNzdWUzNjQ5MjE2NjU=","number":207,"title":"Jsoniter fails serializing string","user":{"login":"rabbee","id":11592312,"node_id":"MDQ6VXNlcjExNTkyMzEy","avatar_url":"https://avatars1.githubusercontent.com/u/11592312?v=4","gravatar_id":"","url":"https://api.github.com/users/rabbee","html_url":"https://github.com/rabbee","followers_url":"https://api.github.com/users/rabbee/followers","following_url":"https://api.github.com/users/rabbee/following{/other_user}","gists_url":"https://api.github.com/users/rabbee/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbee/subscriptions","organizations_url":"https://api.github.com/users/rabbee/orgs","repos_url":"https://api.github.com/users/rabbee/repos","events_url":"https://api.github.com/users/rabbee/events{/privacy}","received_events_url":"https://api.github.com/users/rabbee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-28T14:47:57Z","updated_at":"2018-09-28T14:47:57Z","closed_at":null,"author_association":"NONE","body":"```\r\nException in thread \"main\" com.jsoniter.spi.JsonException: Broken surrogate pair: first char 0xd83d, second 0xd83d; illegal combination\r\n\tat com.jsoniter.output.StreamImplString.writeStringSlowPathWithoutEscapeUnicode(StreamImplString.java:179)\r\n\tat com.jsoniter.output.StreamImplString.writeStringSlowPath(StreamImplString.java:142)\r\n\tat com.jsoniter.output.StreamImplString.writeString(StreamImplString.java:93)\r\n\tat com.jsoniter.output.JsonStream.writeVal(JsonStream.java:146)\r\n\tat com.jsoniter.output.CodegenImplNative$1$17.encode(CodegenImplNative.java:214)\r\n\tat com.jsoniter.output.JsonStream.writeVal(JsonStream.java:362)\r\n\tat com.jsoniter.output.ReflectionObjectEncoder.writeEncodeTo(ReflectionObjectEncoder.java:121)\r\n\tat com.jsoniter.output.ReflectionObjectEncoder.enocde_(ReflectionObjectEncoder.java:74)\r\n\tat com.jsoniter.output.ReflectionObjectEncoder.encode(ReflectionObjectEncoder.java:37)\r\n\tat com.jsoniter.output.JsonStream.writeVal(JsonStream.java:381)\r\n\tat com.jsoniter.output.JsonStream.serialize(JsonStream.java:490)\r\n\tat com.jsoniter.output.JsonStream.serialize(JsonStream.java:470)\r\n\tat me.rabbee.test.Main.main(Main.java:16)\r\n```\r\n\r\nCodes:\r\n```java\r\nimport com.jsoniter.output.JsonStream;\r\nimport com.jsoniter.spi.Config;\r\nimport com.jsoniter.spi.Config.Builder;\r\nimport com.jsoniter.spi.JsoniterSpi;\r\n\r\npublic class Main {\r\n\r\n    public static void main(String[] args) {\r\n        Config.Builder builder = new Builder();\r\n        Config config = builder.escapeUnicode(false).build();\r\n        JsoniterSpi.setDefaultConfig(config);\r\n        Test test = new Test();\r\n        test.test = \"lorem-\\uD83D\\uDC44\\uD83D\\uDC40\";\r\n        String json = JsonStream.serialize(test);\r\n        System.out.println(json);\r\n    }\r\n\r\n    public static class Test {\r\n\r\n        public String test;\r\n\r\n        public Test() {\r\n        }\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"rabbee"}}