1
Vote

__invalid_name__XXX is generated when the key is number (XXX)

description

For instance the json:
  "products_name": {
    "1": "Fashion Ladies Woman Casual Sleeveless Vest Striped Loose Basic Loose Tank Tops",
    "5": "Fashion Ladies Woman Casual Sleeveless Vest Striped Loose Basic Loose Tank Tops",
    "9": "Fashion Ladies Woman Casual Sleeveless Vest Striped Loose Basic Loose Tank Tops",
    "10": "Fashion Ladies Woman Casual Sleeveless Vest Striped Loose Basic Loose Tank Tops",
    "11": "Fashion Ladies Woman Casual Sleeveless Vest Striped Loose Basic Loose Tank Tops",
    "12": "Fashion Ladies Woman Casual Sleeveless Vest Striped Loose Basic Loose Tank Tops",
    "13": "Fashion Ladies Woman Casual Sleeveless Vest Striped Loose Basic Loose Tank Tops",
    "14": "Fashion Ladies Woman Casual Sleeveless Vest Striped Loose Basic Loose Tank Tops"
  }
Results with:

public class ProductsName
{
public string __invalid_name__1 { get; set; }
public string __invalid_name__5 { get; set; }
public string __invalid_name__9 { get; set; }
public string __invalid_name__10 { get; set; }
public string __invalid_name__11 { get; set; }
public string __invalid_name__12 { get; set; }
public string __invalid_name__13 { get; set; }
public string __invalid_name__14 { get; set; }
}

There nust be a way to have a list or dictionary or

comments