I'm trying to parse a json file which looks something like this:
{ "my_test":[
{ "group_name":"group-A", "results": [
{ "test_name": "test1", "time": "8.556", "status": "pass" },
{ "test_name": "test2", "time": "45.909", "status": "pass" },
{ "test_name": "test3", "time": "9.383", "status": "fail" },
...
}
}
how can I print out the test results in ascending order? (by the name or by time)
EDIT: The output could be in ascending order of time:
test1 8.556
test3 9.383
test2 45.909