Return json from test's results