deletes method to trasform array to json