private ResponseEntity buildTextJsonOutputForList()

in src/main/java/com/amazonaws/sagemaker/helper/ResponseHelper.java [103:112]


    private ResponseEntity<String> buildTextJsonOutputForList(final Iterator<Object> outputDataIterator)
        throws JsonProcessingException {
        final StringJoiner stringJoiner = new StringJoiner(" ");
        while (outputDataIterator.hasNext()) {
            stringJoiner.add(outputDataIterator.next().toString());
        }
        final JsonlinesTextOutput jsonOutput = new JsonlinesTextOutput(stringJoiner.toString());
        final String jsonRepresentation = mapper.writeValueAsString(jsonOutput);
        return this.getJsonlinesOkResponse(jsonRepresentation);
    }