Version 4.1.6
((ExtentTest)stepTest.get()).info(MarkupHelper.createCodeBlock(json, CodeLanguage.JSON));
When i use the above code its printing message as below
<script>
function jsonTreeCreate1() {
document.getElementById('code-block-json-1').innerHTML = JSONTree.create({ "id" : 73, "number" : "800090803", "id" : "Tk-5010", "name" : "GAP Inc", "tad" : "91-1234587", "reasonDescription" : "TEST - Activat", "statusModifiedDate" : "2020-06-02T19:50:28.116", "status" : "ACTIVE", "address" : { "street" : "2 Folsom St", "address2" : "", "address3" : "", "city" : "San Francisco", "state" : "CA", "zip" : "94105", "country" : "USA" }});
}
jsonTreeCreate1();
</script>
Version 4.1.6
((ExtentTest)stepTest.get()).info(MarkupHelper.createCodeBlock(json, CodeLanguage.JSON));
When i use the above code its printing message as below
<script> function jsonTreeCreate1() { document.getElementById('code-block-json-1').innerHTML = JSONTree.create({ "id" : 73, "number" : "800090803", "id" : "Tk-5010", "name" : "GAP Inc", "tad" : "91-1234587", "reasonDescription" : "TEST - Activat", "statusModifiedDate" : "2020-06-02T19:50:28.116", "status" : "ACTIVE", "address" : { "street" : "2 Folsom St", "address2" : "", "address3" : "", "city" : "San Francisco", "state" : "CA", "zip" : "94105", "country" : "USA" }}); } jsonTreeCreate1(); </script>