# JsonUtil

Element | Missed Instructions | Cov. | Missed Branches | Cov. | Missed | Cxty | Missed | Lines | Missed | Methods
Total | 807 of 1,932 | 58% | 134 of 318 | 57% | 114 | 201 | 201 | 528 | 14 | 42
cachedCopyOfJsonPayload(MessageContext) |  | 0% |  | 0% | 6 | 6 | 28 | 28 | 1 | 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(OMElement, OutputStream) |  | 55% |  | 50% | 7 | 10 | 9 | 36 | 0 | 1
writeAsJson(MessageContext, OutputStream) |  | 53% |  | 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
removeChildrenFromPayloadBody(MessageContext) |  | 37% |  | 40% | 5 | 6 | 10 | 20 | 0 | 1
getNewJsonPayload(MessageContext, byte[], int, int, boolean, boolean) |  | 0% |  | 0% | 3 | 3 | 5 | 5 | 1 | 1
writeJsonStream(InputStream, MessageContext, OutputStream) |  | 32% |  | 33% | 3 | 4 | 7 | 13 | 0 | 1
static {...} |  | 88% |  | 50% | 1 | 2 | 12 | 86 | 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
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
jsonPayloadToByteArray(MessageContext) |  | 70% |  | 100% | 0 | 3 | 3 | 9 | 0 | 1
isAJsonPayloadElement(OMElement) |  | 70% |  | 50% | 3 | 5 | 0 | 4 | 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
transformElement(OMElement, boolean) |  | 96% |  | 50% | 3 | 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
removeIndentations(OMElement) |  | 100% |  | 100% | 0 | 5 | 0 | 10 | 0 | 1
toJsonString(OMElement) |  | 100% |  | 100% | 0 | 2 | 0 | 5 | 0 | 1
getReader(InputStream, boolean) |  | 100% |  | 100% | 0 | 3 | 0 | 5 | 0 | 1
getReader(InputStream) |  | 100% |  | 100% | 0 | 2 | 0 | 4 | 0 | 1
setJsonStream(MessageContext, InputStream) |  | 100% |  | n/a | 0 | 1 | 0 | 3 | 0 | 1
isPiEnabled() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1