characterEscape method

Parser<String> characterEscape()

Implementation

Parser<String> characterEscape() => seq2(
      char('\\'),
      anyOf(jsonEscapeChars.keys.join()),
    ).map2((_, char) => jsonEscapeChars[char]!);