convert JSONArray into string before saving results to ES

If chopped tests fail, then in the resulting JSON file "failures" property will be an JSONArray. We need to convert this JSONArray into string in order not to get  ClassCastException while saving this JSON file into Elastic Search.

My iCLA is listed under "Salih Kardan"