@Override
  public Writable serialize(final Object obj,
      final ObjectInspector objInspector) throws SerDeException {

    final String jsonText = this.jsonWriter.write(obj, objInspector);

    return new Text(jsonText);
  }
Given an object and object inspector pair, traverse the object
and generate a Text representation of the object.
serde/src/java/org/apache/hadoop/hive/serde2/JsonSerDe.java