title: .Net Core: controlling Json generated by Controller.Json method
body: <p>By default, Controller.Json generates JSON for each public member of a class. How can I change this so that some members are ignored. Please note that I am using .Net Core.</p>
  
  <p>Example:</p>
  
  <pre><code>[HttpGet("/api/episodes")]
  public IActionResult GetEpisodes()
  {
    var episodes = _podcastProvider.Get();
  
    return Json(episodes);
  }
  </code></pre>
  
  <p>Thanks.</p>