title: How to bind Json Query string in asp.net core web api
body: <p>following code in asp.net web <code>API</code> worked fine but doesn't work in Asp.net core.</p>
  
  <p>Endpoint    <code>api/devices?query={"deviceName":"example"}</code></p>
  
  <pre><code>[HttpGet]
  public Device ([FromUri] string deviceName)
  {        
          var device = context.Computers.Where(x =&gt; x.deviceName == deviceName);
          return device;
  }
  </code></pre>
  
  <p><code>[FromUri]</code> attribute is not present <code>asp.net</code> core web <code>API</code>, and I tried to use following , but no success. </p>
  
  <pre><code>[HttpGet]
  public Device  Get([FromQuery] string  deviceName)
  {
      return repo.GetDeviceByName(deviceName);
  }
  </code></pre>