title: Making use of ASP.NET Core's JSON to Model conversion outside of Controllers?
body: <p>I need to convert Json strings to Model representations, but outside of Http request pipeline in an ASP.NET Core application.</p>
  
  <p>Passing data into, our out of this pipeline lets me seamlessly convert between json and model - or dynamic - representations. But now that I manually need to transform a model to a json representation and then back to a model I find myself working manually with a Newtonsoft JObject. which is messy because I can't be sure I have implemented it correctly / the way ASP.NET Core has. And ultimately will be the wrong serializer when we upgrade to 3.0</p>
  
  <p>So, surely there is a way to invoke / request the ASP.NET Core serialiser so I can get the same behaviour?</p>
  
  <p>I am thinking of creating a fake controller and invoking actions on it - this seems rather convoluted and possibly would expose unwanted functionality to callers. </p>