@Override
  public Iterable<JsonObject> convertRecord(JsonArray outputSchema, String inputRecord, WorkUnitState workUnit)
      throws DataConversionException {

    JsonObject outputRecord = createOutput(outputSchema, inputRecord);

    LOG.debug("Converted into " + outputRecord);

    return new SingleRecordIterable<JsonObject>(outputRecord);
  }
@ Override public Iterable < JsonObject > convertRecord ( JsonArray outputSchema , String inputRecord , WorkUnitState workUnit ) throws DataConversionException { JsonObject outputRecord = createOutput ( outputSchema , inputRecord ) ; LOG . debug ( "Converted into " + outputRecord ) ; return new SingleRecordIterable < JsonObject > ( outputRecord ) ; }
Converts Text (String) to JSON based on a Grok regexp expression.
By default, fields between Text and JSON are mapped by Grok SEMANTIC which is the identifier you give to the piece of text being matched in your Grok expression.


e.g:
{@inheritDoc}
@see Converter#convertRecord(Object, Object, WorkUnitState)