Added getAll method. Converted all responses to json.