fixed erroneos ',' at end of JSON array and escaped all "\"