在以下json
有兩個產品對象,產品不斷變化一些有超過100個產品(我試過json
到pojo
轉換器,但它有兩個主產品內的產品)...產品是動態的...我使用改裝如何爲此JSON創建模型?
{
"1": {
"entity_id": "11",
"type_id": "virtual",
"sku": "JIG0001VEN",
"name": "Test Chanakya",
"meta_title": "Test Chanakya",
"meta_description": "Test Chanakya",
"brand_name": "Chanakya",
"language": "English",
"no_test_attempts": "4",
"product_type": "25",
"difficulty_level": "20",
"jigno_certified": "18",
"ca_related": "23",
"description": "Test Chanakya",
"short_description": "Test Chanakya",
"meta_keyword": "Test Chanakya",
"regular_price_with_tax": 4500,
"regular_price_without_tax": 4500,
"final_price_with_tax": 4500,
"final_price_without_tax": 4500,
"is_saleable": true
},
"2": {
"entity_id": "12",
"type_id": "virtual",
"sku": "JIG5555GENESIS",
"name": "Genesis Mentors GMAT Mock - 01",
"meta_title": "Genesis GMAT",
"brand_name": "Genesis Mentors",
"language": "English",
"meta_description": "Genesis GMAT",
"no_test_attempts": "3",
"product_type": "25",
"difficulty_level": "21",
"jigno_certified": "18",
"ca_related": "23",
"description": "Exhaustive national level ",
"meta_keyword": "GMAT, Genesis, Management",
"short_description": "Genesis Mentors GMAT Mock",
"regular_price_with_tax": 199,
"regular_price_without_tax": 199,
"final_price_with_tax": 199,
"final_price_without_tax": 199,
"is_saleable": true
}
}
入住此http:// WWW。 jsonschema2pojo.org/ – Piyush