public class Json
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Json.Env
Environment.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
static java.lang.String |
maskForOutput(java.lang.String str)
Mask special characters in the given string for JSON output.
|
static java.lang.String |
unmaskFromInput(java.lang.String str)
Unmask special characters in the incoming string.
|
@NotNull public static java.lang.String maskForOutput(@NotNull java.lang.String str)
",
\, \n and similar.str - str@NotNull public static java.lang.String unmaskFromInput(@NotNull java.lang.String str) throws java.io.IOException
", \, \n and similar.str - incoming JSON stringjava.io.IOException - if str contains invalid escape sequencespublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException