add toString to json object and array