title: Converting Json code to C# (numbers as keys)
body: <p>I get some json code from web services in Windows Phone 8. I generate my entities class thanks to the site json2csharp (<a href="http://json2csharp.com/" rel="nofollow">http://json2csharp.com/</a>). But there is a web service that has strange json code, like this. There is numbering as keys (0,1,2):</p>
  
  <pre><code>{
    "service": "MainMapService",
    "func": "getPlacesByAxes",
    "result": {
      "0": {
        "id": "13478",
        "date": "0",
        "id_cat": "1",
        "id_cat_sub": "0",
        "id_user": "0",
       },
      "2": {
        "id": "23272",
        "date": "0",
        "id_cat": "1",
        "id_cat_sub": "0",
        "id_user": "667"
      },
      "1": {
        "id": "21473",
        "date": "0",
        "id_cat": "1",
        "id_cat_sub": "0",
        "id_user": "0"
       }
     },
    "args": [
      "1",
      "50.8",
      "4.5",
      "1"
    ]
  }
  </code></pre>
  
  <p>And json2csharp generates classes like this... Each class for a number:</p>
  
  <pre><code>public class __invalid_type__0
  {
      public string id { get; set; }
      public string date { get; set; }
      public string id_cat { get; set; }
      public string id_cat_sub { get; set; }
      public string id_user { get; set; }
  }
  
  public class __invalid_type__2
  {
      public string id { get; set; }
      public string date { get; set; }
      public string id_cat { get; set; }
      public string id_cat_sub { get; set; }
      public string id_user { get; set; }
  }
  
  public class __invalid_type__1
  {
      public string id { get; set; }
      public string date { get; set; }
      public string id_cat { get; set; }
      public string id_cat_sub { get; set; }
      public string id_user { get; set; }
  }
  
  public class Result
  {
      public __invalid_type__0 __invalid_name__0 { get; set; }
      public __invalid_type__2 __invalid_name__2 { get; set; }
      public __invalid_type__1 __invalid_name__1 { get; set; }
  }
  
  public class RootObject
  {
      public string service { get; set; }
      public string func { get; set; }
      public Result result { get; set; }
      public List&lt;string&gt; args { get; set; }
  }
  </code></pre>
  
  <p>So, the problem comes from the numbering keys and there may be several numbers. Do you know how can I resolve this? I can't change the Json code...</p>
  
  <p>Thank you in advance</p>