Responding as application/json instead of text/plain