src/main/java/com/ning/metrics/goodwill/access/GoodwillSchemaField.java
public ByteArrayOutputStream toJSON() throws IOException
    {
        final ByteArrayOutputStream out = new ByteArrayOutputStream();
        mapper.writeValue(out, this);
        return out;
    }
public ByteArrayOutputStream toJSON() throws IOException
    {
        final ByteArrayOutputStream out = new ByteArrayOutputStream();
        mapper.writeValue(out, this);
        return out;
    }
Create a JSON representation of the GoodwillSchemaField. It will always contain
the name, type and position. Description and SQL attributes are however
optional.

@return JSONObject containing all fields
@throws IOException             if a serialization exception occurs
@throws JsonGenerationException if a serialization exception occurs