@SuppressWarnings("unchecked")
    public static <E> String serialize(E object) throws IOException {
        return mapperFor((Class<E>)object.getClass()).serialize(object);
    }
Serialize an object to a JSON String.

@param object The object to serialize.
core/src/main/java/com/bluelinelabs/logansquare/LoganSquare.java