src/main/java/adudecalledleo/lionutils/serialize/JanksonObjectFormat.java
@Override
    public <T> void write(T src, Appendable writer) throws IOException {
        try {
            JsonElement obj = delegate.toJson(src);
            writer.append(obj.toJson(grammar));
        } catch (IOException e) {
            throw new IOException("JSON serialization failed", e);
        }
    }
/**
     * {@inheritDoc}
     * @param src object to write
     * @param writer destination {@link Appendable}
     * @param <T> type of object to write
     * @throws IOException if an I/O exception occurs.
     */
@param src object to write
@param writer destination  Appendable
@param  type of object to write
@throws IOException if an I/O exception occurs.
@param src object to write @param writer destination Appendable @param type of object to write @throws IOException if an I / O exception occurs .
@Override
    public <T> void write(T src, Appendable writer) throws IOException {
        try {
            JsonElement obj = delegate.toJson(src);
            writer.append(obj.toJson(grammar));
        } catch (IOException e) {
            throw new IOException("JSON serialization failed", e);
        }
    }
@ Override public < T > void write ( T src , Appendable writer ) throws IOException { try { JsonElement obj = delegate . toJson ( src ) ; writer . append ( obj . toJson ( grammar ) ) ; } catch ( IOException e ) { throw new IOException ( "JSON serialization failed" , e ) ; } }
{@inheritDoc}
 @param src object to write
 @param writer destination {@link Appendable}
 @param <T> type of object to write
 @throws IOException if an I/O exception occurs.
{ @inheritDoc } @param src object to write @param writer destination { @link Appendable } @param <T > type of object to write @throws IOException if an I / O exception occurs .