private void writeField(FieldType field, Object value) throws IOException
   {
      String fieldName = field.name().toLowerCase();
      writeField(fieldName, field.getDataType(), value);
   }
private void writeField ( FieldType field , Object value ) throws IOException { String fieldName = field . name ( ) . toLowerCase ( ) ; writeField ( fieldName , field . getDataType ( ) , value ) ; }
Write the appropriate data for a field to the JSON file based on its type.

@param field field type
@param value field value