Makes sure everything is returning JSON.