다음은 json
입니다. 제품에는 두 가지 제품 개체가 있습니다. 제품은 100 개 이상의 제품이 있습니다. (~ pojo
변환기를 사용해 보았지만 주 제품 내부에는 2 개의 제품이 2 개 있습니다.) 제품이 동적입니다이 JSON에 대한 모델을 만드는 방법은 무엇입니까?
가에서 참조하시기 바랍니다
첫 번째 방법은 GSON을 사용하고 있습니다 : ... 나는 두 가지 방법이 있습니다 개조
{
"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 GET 위해 JSON을 복사 할 수 있습니다 : // www가 있습니다. jsonschema2pojo.org/ – Piyush