The text file contains the below array.
[
{
"title":"Test Report",
"htmlpath":"C:\\sample.html",
"browser":"phantomjs",
"browser_version":"2.1.1",
"time":"0h 0min 0s5",
"testresults":"passed: 1 failed: 0 skipped: 2"
}
]
[
{
"title":"Test Report",
"htmlpath":"C:\\sample1.html",
"browser":"internet explorer",
"browser_version":"11",
"time":"0h 0min 0s8",
"testresults":"passed: 1 failed: 0 skipped: 2"
}
]
I would like to read the above text file using Javascript, parse it as an associative array. Use this array and create a table for the Key value pair and display in the HTML. Please help with the existing code to achieve this.