private static JsonNode parseJsonContent(byte[] rawJsonContent, ObjectMapper mapper) {
        if (rawJsonContent == null) {
            return mapper.createObjectNode();
        }
        try {
            JsonNode jsonNode = mapper.readTree(rawJsonContent);
            if (jsonNode.isMissingNode()) {
                return mapper.createObjectNode();
            }
            return jsonNode;
        } catch (Exception e) {
            LOG.debug("Unable to parse HTTP response content", e);
            return mapper.createObjectNode();
        }
    }
Static factory method to create a JsonContent object from the contents of the HttpResponse
provided
aws-java-sdk-core/src/main/java/com/amazonaws/protocol/json/JsonContent.java