public CreateExportTaskResult unmarshall(JsonUnmarshallerContext context) throws Exception {
    CreateExportTaskResult createExportTaskResult = new CreateExportTaskResult();

    int originalDepth = context.getCurrentDepth();
    String currentParentElement = context.getCurrentParentElement();
    int targetDepth = originalDepth + 1;

    JsonToken token = context.getCurrentToken();
    if (token == null) token = context.nextToken();
    if (token == VALUE_NULL) return null;

    while (true) {
      if (token == null) break;

      if (token == FIELD_NAME || token == START_OBJECT) {
        if (context.testExpression("taskId", targetDepth)) {
          context.nextToken();
          createExportTaskResult.setTaskId(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
      } else if (token == END_ARRAY || token == END_OBJECT) {
        if (context.getLastParsedParentElement() == null
            || context.getLastParsedParentElement().equals(currentParentElement)) {
          if (context.getCurrentDepth() <= originalDepth) break;
        }
      }
      token = context.nextToken();
    }

    return createExportTaskResult;
  }
  public OutputLogEvent unmarshall(JsonUnmarshallerContext context) throws Exception {
    OutputLogEvent outputLogEvent = new OutputLogEvent();

    int originalDepth = context.getCurrentDepth();
    String currentParentElement = context.getCurrentParentElement();
    int targetDepth = originalDepth + 1;

    JsonToken token = context.getCurrentToken();
    if (token == null) token = context.nextToken();
    if (token == VALUE_NULL) return null;

    while (true) {
      if (token == null) break;

      if (token == FIELD_NAME || token == START_OBJECT) {
        if (context.testExpression("timestamp", targetDepth)) {
          context.nextToken();
          outputLogEvent.setTimestamp(LongJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("message", targetDepth)) {
          context.nextToken();
          outputLogEvent.setMessage(StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("ingestionTime", targetDepth)) {
          context.nextToken();
          outputLogEvent.setIngestionTime(LongJsonUnmarshaller.getInstance().unmarshall(context));
        }
      } else if (token == END_ARRAY || token == END_OBJECT) {
        if (context.getLastParsedParentElement() == null
            || context.getLastParsedParentElement().equals(currentParentElement)) {
          if (context.getCurrentDepth() <= originalDepth) break;
        }
      }

      token = context.nextToken();
    }

    return outputLogEvent;
  }