title: Not found resource in controller web api Uri with .json
body: <p>I need to run a REST query request to a Web API controller using the following format:</p>
  
  <pre><code>http://path/name.json?foo.bar.text=aCertainValue
  </code></pre>
  
  <p>(I cannot change this format since it depends on external providers).</p>
  
  <p>The problem I have is that I cannot retrieve the query result.</p>
  
  <p>I have tried the following options on my server code (written in C#):</p>
  
  <pre><code>[HttpGet]
  [Route(Name = "name.json")]
  public List&lt;SpaceFound3rdParty&gt; findRes([FromUri (Name = "foo.bar.text")] string text)
  {...}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>[HttpGet]
  [Route("name.json")]
  public List&lt;SpaceFound3rdParty&gt; findRes([FromUri (Name = "foo.bar.text")] string text)
  {...}
  </code></pre>
  
  <p>none of which have succeeded.</p>
  
  <p>If I specify a name without dots (i.e. a name without a path), and I use <code>/?</code> as separator between path name and resource name, I can retrieve the resource successfully. However, this is not an option (I have to use <code>?</code> even though there is a single resource in the request.</p>
  
  <p>How can I modify the C# server to retrieve the resource while maintaining the requested format <code>pathName?resourceName</code>?</p>