Make API use json objects for all responses