# JsonUtil

Element | Missed Instructions | Cov. | Missed Branches | Cov. | Missed | Cxty | Missed | Lines | Missed | Methods
Total | 979 of 2,254 | 56% | 147 of 350 | 58% | 124 | 228 | 266 | 644 | 16 | 53
generateJSONOutputFactoryWithOveride(Properties) |  | 0% |  | n/a | 1 | 1 | 51 | 51 | 1 | 1
cachedCopyOfJsonPayload(MessageContext) |  | 0% |  | 0% | 6 | 6 | 28 | 28 | 1 | 1
writeJsonStream(InputStream, MessageContext, OutputStream) |  | 29% |  | 18% | 8 | 9 | 16 | 28 | 0 | 1
removeJsonPayload(MessageContext) |  | 0% |  | 0% | 8 | 8 | 21 | 21 | 1 | 1
getNewJsonPayload(MessageContext, InputStream, boolean, boolean) |  | 82% |  | 75% | 27 | 58 | 13 | 82 | 0 | 1
writeAsJson(MessageContext, OutputStream) |  | 54% |  | 75% | 5 | 11 | 12 | 35 | 0 | 1
copyOfJsonPayload(MessageContext, boolean) |  | 0% |  | 0% | 4 | 4 | 15 | 15 | 1 | 1
newJavaScriptSourceReader(MessageContext) |  | 0% |  | 0% | 2 | 2 | 14 | 14 | 1 | 1
convertOMElementToJson(OMElement, OutputStream, JsonXMLOutputFactory) |  | 62% |  | 100% | 0 | 4 | 9 | 32 | 0 | 1
getNewJsonPayload(MessageContext, byte[], int, int, boolean, boolean) |  | 0% |  | 0% | 3 | 3 | 5 | 5 | 1 | 1
generateJSONOutputFactory(Properties) |  | 82% |  | 50% | 1 | 2 | 12 | 53 | 0 | 1
removeChildrenFromPayloadBody(MessageContext) |  | 67% |  | 40% | 5 | 6 | 6 | 20 | 0 | 1
toJsonStream(OMElement) |  | 53% |  | 100% | 0 | 2 | 4 | 11 | 0 | 1
toXml(InputStream, boolean) |  | 48% |  | 100% | 0 | 2 | 3 | 8 | 0 | 1
getNewJsonPayload(MessageContext, String, boolean, boolean) |  | 0% |  | 0% | 3 | 3 | 3 | 3 | 1 | 1
newJsonPayloadReader(MessageContext) |  | 0% |  | 0% | 3 | 3 | 6 | 6 | 1 | 1
cloneJsonPayload(MessageContext, MessageContext) |  | 57% |  | 50% | 1 | 2 | 4 | 10 | 0 | 1
removeIndentations(OMElement, Map) |  | 72% |  | 50% | 6 | 10 | 1 | 14 | 0 | 1
newJsonPayload(MessageContext, byte[], int, int, boolean, boolean) |  | 0% |  | n/a | 1 | 1 | 4 | 4 | 1 | 1
_hasAJsonObject(MessageContext) |  | 0% |  | 0% | 3 | 3 | 2 | 2 | 1 | 1
newJsonPayload(MessageContext, InputStream, boolean, boolean) |  | 0% |  | n/a | 1 | 1 | 4 | 4 | 1 | 1
newJsonPayload(MessageContext, String, boolean, boolean) |  | 0% |  | n/a | 1 | 1 | 4 | 4 | 1 | 1
addPayloadBody(MessageContext, OMElement) |  | 57% |  | 50% | 2 | 3 | 2 | 8 | 0 | 1
hasAJsonObject(MessageContext) |  | 0% |  | 0% | 3 | 3 | 1 | 1 | 1 | 1
hasAJsonArray(MessageContext) |  | 0% |  | 0% | 3 | 3 | 1 | 1 | 1 | 1
jsonStream(MessageContext, boolean) |  | 72% |  | 75% | 2 | 5 | 4 | 14 | 0 | 1
jsonPayloadToString(MessageContext) |  | 57% |  | 75% | 1 | 3 | 4 | 9 | 0 | 1
generateJsonXMLInputFactory(Properties) |  | 85% |  | 50% | 1 | 2 | 3 | 19 | 0 | 1
jsonPayloadToByteArray(MessageContext) |  | 70% |  | 100% | 0 | 3 | 3 | 9 | 0 | 1
isAJsonPayloadElement(OMElement) |  | 70% |  | 50% | 3 | 5 | 0 | 4 | 0 | 1
generateJSONInputFactory(Properties) |  | 88% |  | 50% | 1 | 2 | 2 | 17 | 0 | 1
removeJsonStream(MessageContext) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
transformElement(OMElement, boolean, Map, JsonXMLOutputFactory) |  | 92% |  | 66% | 4 | 7 | 1 | 12 | 0 | 1
JsonUtil() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
hasAJsonPayload(MessageContext) |  | 92% |  | 60% | 4 | 6 | 1 | 4 | 0 | 1
isValidPayloadRequired(MessageContext) |  | 88% |  | 50% | 2 | 3 | 1 | 5 | 0 | 1
toReadOnlyStream(InputStream) |  | 77% |  | 50% | 1 | 2 | 1 | 3 | 0 | 1
writeAsJson(OMElement, OutputStream, Map, JsonXMLOutputFactory) |  | 96% |  | 83% | 1 | 4 | 1 | 8 | 0 | 1
hasAJsonPayload(OMElement) |  | 92% |  | 50% | 3 | 4 | 0 | 1 | 0 | 1
getJsonPayload(MessageContext) |  | 88% |  | 50% | 1 | 2 | 0 | 1 | 0 | 1
setContentType(MessageContext) |  | 87% |  | 50% | 1 | 2 | 1 | 4 | 0 | 1
removeNamespaces(OMElement, boolean) |  | 100% |  | 100% | 0 | 6 | 0 | 20 | 0 | 1
static {...} |  | 100% |  | n/a | 0 | 1 | 0 | 13 | 0 | 1
removeIndentations(OMElement) |  | 100% |  | 100% | 0 | 5 | 0 | 10 | 0 | 1
toJsonString(OMElement, JsonXMLOutputFactory) |  | 100% |  | 100% | 0 | 2 | 0 | 5 | 0 | 1
getReader(InputStream, boolean) |  | 100% |  | 100% | 0 | 3 | 0 | 6 | 0 | 1
getReader(InputStream) |  | 100% |  | 100% | 0 | 2 | 0 | 5 | 0 | 1
populateRequiredProperties(MessageContext) |  | 100% |  | n/a | 0 | 1 | 0 | 3 | 0 | 1
setJsonStream(MessageContext, InputStream) |  | 100% |  | n/a | 0 | 1 | 0 | 3 | 0 | 1
writeAsJson(OMElement, OutputStream) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
transformElement(OMElement, boolean) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
toJsonString(OMElement) |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1
isPiEnabled() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1