Skip to content

Unable to format the JSON String in report. #193

Description

@sumanguduru

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions