public static void escapeJsonMinimal(final String text, final Writer writer)
            throws IOException {
        escapeJson(text, writer,
                JsonEscapeType.SINGLE_ESCAPE_CHARS_DEFAULT_TO_UHEXA,
                JsonEscapeLevel.LEVEL_1_BASIC_ESCAPE_SET);
    }
public static void escapeJsonMinimal ( final String text , final Writer writer ) throws IOException { escapeJson ( text , writer , JsonEscapeType . SINGLE_ESCAPE_CHARS_DEFAULT_TO_UHEXA , JsonEscapeLevel . LEVEL_1_BASIC_ESCAPE_SET ) ; }
<p>
Perform a JSON level 1 (only basic set) <strong>escape</strong> operation
on a <tt>String</tt> input, writing results to a <tt>Writer</tt>.
</p>
<p>
<em>Level 1</em> means this method will only escape the JSON basic escape set:
</p>
<ul>
<li>The <em>Single Escape Characters</em>:
<tt>&#92;b</tt> (<tt>U+0008</tt>),
<tt>&#92;t</tt> (<tt>U+0009</tt>),
<tt>&#92;n</tt> (<tt>U+000A</tt>),
<tt>&#92;f</tt> (<tt>U+000C</tt>),
<tt>&#92;r</tt> (<tt>U+000D</tt>),
<tt>&#92;&quot;</tt> (<tt>U+0022</tt>),
<tt>&#92;&#92;</tt> (<tt>U+005C</tt>) and
<tt>&#92;&#47;</tt> (<tt>U+002F</tt>).
Note that <tt>&#92;&#47;</tt> is optional, and will only be used when the <tt>&#47;</tt>
symbol appears after <tt>&lt;</tt>, as in <tt>&lt;&#47;</tt>. This is to avoid accidentally
closing <tt>&lt;script&gt;</tt> tags in HTML.
</li>
<li>
Two ranges of non-displayable, control characters (some of which are already part of the
<em>single escape characters</em> list): <tt>U+0000</tt> to <tt>U+001F</tt> (required
by the JSON spec) and <tt>U+007F</tt> to <tt>U+009F</tt> (additional).
</li>
</ul>
<p>
This method calls {@link #escapeJson(String, Writer, JsonEscapeType, JsonEscapeLevel)}
with the following preconfigured values:
</p>
<ul>
<li><tt>type</tt>:
{@link JsonEscapeType#SINGLE_ESCAPE_CHARS_DEFAULT_TO_UHEXA}</li>
<li><tt>level</tt>:
{@link JsonEscapeLevel#LEVEL_1_BASIC_ESCAPE_SET}</li>
</ul>
<p>
This method is <strong>thread-safe</strong>.
</p>

@param text the <tt>String</tt> to be escaped.
@param writer the <tt>java.io.Writer</tt> to which the escaped result will be written. Nothing will
be written at all to this writer if input is <tt>null</tt>.
@throws IOException if an input/output exception occurs

@since 1.1.2