@Override
    public String toJson(Object object) {
        return serializer.get().serialize(object).toString();
    }
@Override
    public String toJson(Object object) {
        return serializer.get().serialize(object).toString();
    }
@ Override public String toJson ( Object object ) { return serializer . get ( ) . serialize ( object ) . toString ( ) ; }
Converts from Object into JSON string.

@param object object to convert to JSON.
@return json string
Converts from Object into JSON string .