json - Generating Class VB.NET -
i using json utils generate class , came problem. json string i'm using:
{ "type": "champion", "version": "7.16.1", "data": { "1": { "title": "the dark child", "id": 1, "key": "annie", "name": "annie" } } }
the class generates:
public class 1 public property title string public property id integer public property key string public property name string end class public class data public property 1 1 end class public class example public property type string public property version string public property data data end class
the thing cannot name class 1, still trying find solution no luck yet. there work around this?
i think should change dictionary
public class example public property type string public property version string public property data dictionary(of string, numbertype) end class public class numbertype public property title string public property id integer public property key string public property name string end class
Comments
Post a Comment