title: Deserializing json with Json.net C# - whitespace within identifiers
body: <p>Some background to my question: I'm looking to deserialize some horrid json within Json.net. This json object is created by ArcGIS Server, and sends a 'results' object which is formatted thusly:</p>
  
  <pre><code>{ "results" : [ { "layerId" : 10, "layerName" : "Polling Districts", "value" : "MyWard", "displayFieldName" : "Ward", "attributes" : { "OBJECTID" : "61", "Ward" : "MyWard", "Polling Station" : "Childrens Resources Centre", "Polling District" : "E", "Constituency" : "South", "Shape" : "Polygon" } } ] }
  </code></pre>
  
  <p>Now the problem is the attributes object:</p>
  
  <pre><code>{ "OBJECTID" : "61", "Ward" : "MyWard", "Polling Station" : "Childrens Resources Centre", "Polling District" : "E", "Constituency" : "South", "Shape" : "Polygon" }
  </code></pre>
  
  <p>...which has whitespace in some identifiers; it's being generated by the 'pretty' field alias, and not the data table name. I'm able to use the linq selectToken to get all other fields, but I'm looking for "Polling Station" in particular.</p>
  
  <p>I've tried quite a few variants of the query:</p>
  
  <pre><code>string pollingStation = (string)jObj.SelectToken("results[0].attributes[Polling Station]"); // Unexpected character while parsing path indexer: P  
  string pollingStation = (string)jObj.SelectToken("results[0].attributes[\"Polling Station\"]"); //Unexpected character while parsing path indexer: "  
  string pollingStation = (string)jObj.SelectToken("results[0].attributes.\"Polling Station\""); // No error, pollingStation is null  
  string pollingStation = (string)jObj.SelectToken("results[0].attributes.Constituency"); // No error, pollingStation is South (correct)
  </code></pre>
  
  <p>I've googled, searched the json.net help &amp; read quite a few questions already posted here - none of which seem to deal with this particular question. Maybe I'm just being dense. You may also be able to tell I'm not proficient in c#, or Linq, and this is the first time I've used Json.net so I have probably made some schoolboy errors. Any suggestions welcome!</p>