Function TestResult.toString

Convert the result to a json string

override string toString();