title: how to run simple ODATA query dynamically and return result in json format using with Roslyn?
body: <p>I'm working on <code>query builder</code> for <code>simple Odata</code> </p>
  
  <p>I'm <code>generating simple odata queries dynamically</code> and want to <code>show result of queries on json format</code>.</p>
  
  <p>query text:</p>
  
  <pre><code>   var DetailData = await myClient.For&lt;CustomerDetail&gt;().Filter(q =&gt; q.Id == id).OrderBy(q =&gt; q.Key).FindEntriesAsync();
  </code></pre>
  
  <blockquote>
    <p>how to run simple ODATA query dynamically and return result in json format?</p>
  </blockquote>