# JsonUtil

Element | Missed Instructions | Cov. | Missed Branches | Cov. | Missed | Cxty | Missed | Lines | Missed | Methods
Total | 1,042 of 2,326 | 55% | 147 of 356 | 58% | 126 | 235 | 276 | 664 | 18 | 57
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% |  | 76% | 26 | 58 | 13 | 82 | 0 | 1
writeAsJson(MessageContext, OutputStream, String) |  | 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, String) |  | 65% |  | 100% | 0 | 5 | 9 | 34 | 0 | 1
getNewJsonPayload(MessageContext, byte[], int, int, boolean, boolean) |  | 0% |  | 0% | 3 | 3 | 5 | 5 | 1 | 1
removeIndentations(OMElement, Map) |  | 56% |  | 45% | 7 | 11 | 5 | 19 | 0 | 1
removeChildrenFromPayloadBody(MessageContext) |  | 51% |  | 60% | 4 | 6 | 6 | 20 | 0 | 1
generateJSONOutputFactory(Properties) |  | 82% |  | 50% | 1 | 2 | 12 | 53 | 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
transformElement(OMElement, boolean, Map, JsonXMLOutputFactory) |  | 65% |  | 66% | 4 | 7 | 2 | 12 | 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
removeIndentations(OMElement) |  | 76% |  | 90% | 1 | 6 | 1 | 15 | 0 | 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
writeAsJson(OMElement, OutputStream, String) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
convertOMElementToJson(OMElement, OutputStream, JsonXMLOutputFactory) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
generateJSONInputFactory(Properties) |  | 88% |  | 50% | 1 | 2 | 2 | 17 | 0 | 1
removeJsonStream(MessageContext) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 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, String) |  | 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
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
writeAsJson(OMElement, OutputStream, Map, JsonXMLOutputFactory) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
transformElement(OMElement, boolean) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
writeAsJson(MessageContext, OutputStream) |  | 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