class JsonQualifierAndValueRowSerializer implements RowSerializer {

    @Override
    public String serialize(byte[] rowKey, ResultCell[] cells) {
        final StringBuilder jsonBuilder = new StringBuilder();
        jsonBuilder.append("{");

        int i = 0;
        for (final ResultCell cell : cells) {
            final String cellQualifier = RowSerializerUtil.getCellQualifier(cell, decodeCharset, base64encode);
            final String cellValue = RowSerializerUtil.getCellValue(cell, decodeCharset, base64encode);

            if (i > 0) {
                jsonBuilder.append(", ");
            }

            appendString(jsonBuilder, cellQualifier, base64encode);
            jsonBuilder.append(":");
            appendString(jsonBuilder, cellValue, base64encode);

            i++;
        }

        jsonBuilder.append("}");
        return jsonBuilder.toString();
    }

    public  JsonQualifierAndValueRowSerializer(final Charset decodeCharset, final Charset encodeCharset);
    public  JsonQualifierAndValueRowSerializer(final Charset decodeCharset, final Charset encodeCharset, final boolean base64encode);

}