private String nodeToString(JsonNode jsonNode) {
        if (jsonNode == null || jsonNode instanceof NullNode) {
            return null;
        }
        return jsonNode.asText();
    }
Container for the InputPath, OutputPath, ResultPath, and ItemsPath fields to handle serialization concerns.
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/states/PathContainer.java