Allow only json to be returned