Make json app return correct content-type