# JsonUtil

Element | Missed Instructions | Cov. | Missed Branches | Cov. | Missed | Cxty | Missed | Lines | Missed | Methods
Total | 984 of 1,874 | 47% | 165 of 312 | 47% | 135 | 195 | 252 | 506 | 23 | 39
cachedCopyOfJsonPayload(MessageContext) |  | 0% |  | 0% | 6 | 6 | 28 | 28 | 1 | 1
getNewJsonPayload(MessageContext, InputStream, boolean, boolean) |  | 78% |  | 73% | 31 | 62 | 21 | 94 | 0 | 1
writeAsJson(OMElement, OutputStream) |  | 50% |  | 44% | 8 | 10 | 11 | 36 | 0 | 1
removeJsonPayload(MessageContext) |  | 0% |  | 0% | 8 | 8 | 22 | 22 | 1 | 1
writeAsJson(MessageContext, OutputStream) |  | 46% |  | 60% | 7 | 11 | 16 | 35 | 0 | 1
copyOfJsonPayload(MessageContext, boolean) |  | 0% |  | 0% | 4 | 4 | 15 | 15 | 1 | 1
newJavaScriptSourceReader(MessageContext) |  | 0% |  | 0% | 2 | 2 | 14 | 14 | 1 | 1
toJsonStream(OMElement) |  | 0% |  | 0% | 2 | 2 | 11 | 11 | 1 | 1
cloneJsonPayload(MessageContext, MessageContext) |  | 0% |  | 0% | 2 | 2 | 10 | 10 | 1 | 1
getNewJsonPayload(MessageContext, byte[], int, int, boolean, boolean) |  | 0% |  | 0% | 3 | 3 | 5 | 5 | 1 | 1
writeJsonStream(InputStream, MessageContext, OutputStream) |  | 33% |  | 33% | 3 | 4 | 7 | 13 | 0 | 1
static {...} |  | 89% |  | 50% | 1 | 2 | 11 | 82 | 0 | 1
hasAJsonPayload(MessageContext) |  | 0% |  | 0% | 6 | 6 | 4 | 4 | 1 | 1
toJsonString(OMElement) |  | 0% |  | 0% | 2 | 2 | 5 | 5 | 1 | 1
jsonPayloadToByteArray(MessageContext) |  | 0% |  | 0% | 3 | 3 | 9 | 9 | 1 | 1
toXml(InputStream, boolean) |  | 34% |  | 50% | 1 | 2 | 5 | 8 | 0 | 1
jsonPayloadToString(MessageContext) |  | 0% |  | 0% | 3 | 3 | 9 | 9 | 1 | 1
getNewJsonPayload(MessageContext, String, boolean, boolean) |  | 0% |  | 0% | 3 | 3 | 3 | 3 | 1 | 1
newJsonPayloadReader(MessageContext) |  | 0% |  | 0% | 3 | 3 | 6 | 6 | 1 | 1
jsonStream(MessageContext, boolean) |  | 55% |  | 50% | 3 | 5 | 7 | 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
hasAJsonPayload(OMElement) |  | 0% |  | 0% | 4 | 4 | 1 | 1 | 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
removeNamespaces(OMElement, boolean) |  | 84% |  | 80% | 2 | 6 | 3 | 20 | 0 | 1
hasAJsonObject(MessageContext) |  | 0% |  | 0% | 3 | 3 | 1 | 1 | 1 | 1
hasAJsonArray(MessageContext) |  | 0% |  | 0% | 3 | 3 | 1 | 1 | 1 | 1
getJsonPayload(MessageContext) |  | 0% |  | 0% | 2 | 2 | 1 | 1 | 1 | 1
setContentType(MessageContext) |  | 0% |  | 0% | 2 | 2 | 4 | 4 | 1 | 1
isAJsonPayloadElement(OMElement) |  | 71% |  | 50% | 3 | 5 | 0 | 4 | 0 | 1
getReader(InputStream, boolean) |  | 76% |  | 75% | 1 | 3 | 2 | 5 | 0 | 1
getReader(InputStream) |  | 69% |  | 50% | 1 | 2 | 2 | 4 | 0 | 1
JsonUtil() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
isValidPayloadRequired(MessageContext) |  | 89% |  | 50% | 2 | 3 | 1 | 5 | 0 | 1
toReadOnlyStream(InputStream) |  | 78% |  | 50% | 1 | 2 | 1 | 3 | 0 | 1
transformElement(OMElement, boolean) |  | 96% |  | 50% | 3 | 4 | 1 | 8 | 0 | 1
removeIndentations(OMElement) |  | 100% |  | 100% | 0 | 5 | 0 | 10 | 0 | 1
isPiEnabled() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1