Added code to make the server default to json