Java: detect control characters which are not correct for JSON

前端 未结 4 732
花落未央
花落未央 2021-02-07 11:11

I am reinventing the wheel and creating my own JSON parse methods in Java.

I am going by the (very nice!) documentation on json.org. The only part I am unsure about is w

4条回答
  •  梦谈多话
    2021-02-07 11:54

    Will Character.isISOControl(...) do? Incidentally, UTF-16 is an encoding of Unicode codepoints... Are you going to be operating at the byte level, or at the character/codepoint level? I recommend leaving the mapping from UTF-16 to character streams to Java's core APIs...

提交回复
热议问题