title: How to configure C# Api to display JSON directly from browser? (but not XML)
body: <p>First, to clarify that, my C# API is working properly. I am able to retrieve the json data from my javascript.</p>
  
  <p>But, I am curious, whenever I access my API directly through the browser, it shows this:
  <a href="https://i.stack.imgur.com/3lIXQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3lIXQ.jpg" alt="enter image description here"></a></p>
  
  <p>However, when I access JSON hosted by others (such as myjson), they are able to display the json directly from the browser:</p>
  
  <p><a href="https://i.stack.imgur.com/LXRgx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LXRgx.jpg" alt="enter image description here"></a></p>
  
  <p>Here's my code briefly,</p>
  
  <pre><code>public Object Get()
  {
    ...// form object from my data
    return myObject;
  }
  </code></pre>
  
  <p>Is there any configuration needed?</p>