title: c# from json string to object
body: <p>How can i create object from this json string.</p>
  
  <p>Its this function <a href="https://wiki.gtanet.work/index.php?title=fromJson" rel="nofollow noreferrer">https://wiki.gtanet.work/index.php?title=fromJson</a></p>
  
  <pre><code>    [["Test item 2",2,1337,1,2,"Użyj test2"],["Test item 1",2,1337,1,1,"Użyj test1"]]
  </code></pre>
  
  <p>I tried this</p>
  
  <pre><code>   items f = API.shared.fromJson(myString).ToObject&lt;items&gt;();
  </code></pre>
  
  <p>And class</p>
  
  <pre><code>public class items
  {
      public string name {get;set;}
      public int weight {get;set;}
      public int model {get;set;}
      public int scala {get;set;}
      public int id {get;set;}
      public string rightClick {get;set;}
  }
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>    Newtonsoft.Json.JsonReaderException: Invalid property identifier character: [. Path '', line 1, position 1.
  </code></pre>