Issue 1294 - JSON reporter missing error reason
Fix transforming errors to json in json reporter (#1295)