Class JsonEscape

java.lang.Object
org.mockserver.llm.JsonEscape

public final class JsonEscape extends Object
String escaping for the small set of code paths that hand-assemble JSON inside provider codecs (streaming chunks, where building a full Jackson tree per token is unwarranted overhead). Handles the seven RFC 8259 short escapes and emits \\uXXXX for every other control character below U+0020.
  • Method Details