получить подкатегорию на основе категории в Android с помощью модернизации - PullRequest
0 голосов
/ 13 сентября 2018

Я новичок в модернизации Android ... Я делаю приложение, которое я должен осуществить модернизацию.Я хочу подкатегорию на основе категории ... как 1-й категории это Доктор, а затем я хочу Доктор подкатегории ......

я получаю список категорий из URL успешно с помощью модернизации ....но я не могу понять, как получить подкатегории для каждой категории ....

вот мой ответ URL ...

категории названы как: заголовок подкатегории имена как: имя

[{"id": 127, "title": "Doctor", "dir_icon": "icon-stethoscope", "category_image": {"attachment_id": "2155", "url": "// themographics.com / wordpress / doc_api / wp-content / uploads / 2017/01 / Hospital.jpg "}," dir_map_marker ": {" attachment_id ":" 128 "," url ":" //themographics.com/wordpress/doc_api/wp-content/uploads/2016/04/02.png "}," Education ":" Enable "," Experience ":" Enable "," Reviews ":" Enable "," Заявки ":" Включить ","заказы ":" включить "," страхование ":" включить "," команды ":" включить "," награды ":" включить "," прайс-лист ":" включить "," статьи ":" включить "," специальности ": [{"term_id": 10, "name":«Кардиолог», «Слизняк»: «Кардиолог», «Группа_терминов»: 0, «Термин_таксономия_ид»: 10, «Таксономия»: «Специальности», «Описание»: «», «Родитель»: 0, «Количество»: 0., "filter": "raw"}, {"term_id": 15, "name": "Colorectal хирург", "slug": "colorectal-хирург", "term_group": 0, "term_taxonomy_id": 15, "таксономия":" specialties "," description ":" "," parent ": 0," count ": 0," filter ":" raw "}, {" term_id ": 6," name ":" Dentist ","slug ":" dentist "," term_group ": 0," term_taxonomy_id ": 6," taxonomy ":" specialities "," description ":" "," parent ": 0," count ": 0," filter ":"raw"}, {"term_id": 7, "name": "Dermatologist", "slug": "dermatologist", "term_group": 0, "term_taxonomy_id": 7, "taxonomy": "specialities", "description":" "," parent ": 0," count ": 0," filter ":" raw "}, {" term_id ": 5," name ":" Dietician "," slug ":" dietician ","term_group ": 0," term_taxonomy_id ": 5," taxonomy ":" specialities "," description ":" "," parent ": 0," count ": 0," filter ":" raw "}, {" term_id": 13," name ":" Eye Doctor "," slug ":"eye-doctor", "term_group": 0, "term_taxonomy_id": 13, "taxonomy": "specialities", "description": "", "parent": 0, "count": 0, "filter": "raw "}, {" term_id ": 16," name ":" Специалист по глазу, носу, уху (ЛОР) "," slug ":" специалист по глазу-носу-уху-энтузиасту "," group_group ": 0,"term_taxonomy_id ": 16," таксономия ":" specialities "," description ":" "," parent ": 0," count ": 0," filter ":" raw "}, {" term_id ": 9," name":" Nephrologist "," slug ":" nephrologist "," term_group ": 0," term_taxonomy_id ": 9," taxonomy ":" specialities "," description ":" "," parent ": 0," count ": 0, "filter": "raw"}, {"term_id": 18, "name": "Neurosurgeon", "slug": "neurosurgeon", "term_group": 0, "term_taxonomy_id": 18, "taxonomy": "specialities", "description": "", "parent": 0, "count": 0, "filter": "raw"}, {"term_id": 17, "name": "Nutritionist", "slug"":" диетолог "," term_group ": 0," term_taxonomy_id ": 17," таксономия ":" специальности "," описание ":" "," родитель ": 0,"считать": 0, «фильтр»: «сырой» }, { "term_id": 19, «имя»: «онколог», "слизняк": "онколог", "term_group": 0, "term_taxonomy_id": 19, "таксономия": "специальности", "описание": "", «родитель»: 0, "считать": 0, «фильтр»: «сырой» }, { "term_id": 8, «имя»: «офтальмолог», "слизняк": "офтальмолог", "term_group": 0, "term_taxonomy_id": 8, "таксономия": "специальности", "описание": "", «родитель»: 0, "считать": 0, «фильтр»: «сырой» }, { "term_id": 20, "имя": "ортодонт", "слизняк": "ортодонт", "term_group": 0, "term_taxonomy_id": 20, "таксономия": "специальности", "описание": "", «родитель»: 0, "считать": 0, «фильтр»: «сырой» }, { "term_id": 21, "имя": "хирург-ортопед", «слизняк»: «хирург-ортопед», "term_group": 0, "term_taxonomy_id": 21, "таксономия": "специальности", "описание": "", «родитель»: 0, "считать": 0, «фильтр»: «сырой» }, { "term_id": 4, «имя»: «педиатр», "слизняк": "педиатр", "term_group": 0, "term_taxonomy_id": 4, "таксономия": "специальности", "описание": "", «родитель»: 0, "считать": 0, «фильтр»: «сырой» }, { "term_id": 22, «имя»: «физиотерапевт», «слизняк»: «физиотерапевт», "term_group": 0, "term_taxonomy_id": 22, "таксономия": "специальности", "описание": "", «родитель»: 0, "считать": 0, «фильтр»: «сырой» }, { "term_id": 14, «имя»: «Пластический хирург», "слизняк": "пластический хирург", "term_group": 0, "term_taxonomy_id": 14, "таксономия": "специальности", "описание": "", «родитель»: 0, "считать": 0, «фильтр»: «сырой» }, { "term_id": 3, «имя»: «врач первичной помощи», "слизняк": "врач первичной помощи", "term_group": 0, "term_taxonomy_id": 3, "таксономия": "специальности", "описание": "", «родитель»: 0, "считать": 0, «фильтр»: «сырой» }, { "term_id": 11, "имя": "психиатр", "слизняк": "психиатр", "term_group": 0, "term_taxonomy_id": 11, "таксономия": "специальности", "описание": "", «родитель»: 0, "считать": 0, «фильтр»: «сырой» }, { "term_id": 12, «имя»: «психолог», "слизняк": "психолог", "term_group": 0, "term_taxonomy_id": 12, "таксономия": "специальности", "описание": "", «родитель»: 0, "считать": 0, «фильтр»: «сырой» }], "seo-title-metas-title": "", "seo-title-metas-description": "" }, { «id»: 126, "title": "больница", "dir_icon": "icon-Hospitalmedicalsignalofacrossinacircle", "category_image": { "attachment_id": "2153", "url": "//themographics.com/wordpress/doc_api/wp-content/uploads/2017/01/Doctor.jpg" }, "dir_map_marker": { "attachment_id": "129", "url": "//themographics.com/wordpress/doc_api/wp-content/uploads/2016/04/03.png" }, «образование»: «отключить», «опыт»: «отключить», «отзывы»: «включить», «заявки»: «включить», «бронирования»: «включить», «страхование»: «включить», «команды»: «включить», "awards": "enable", "price_list": "enable", "специальности": [{ "term_id": 36, «имя»: «Онкологическая больница», "слизняк": "больница рака" "term_group": 0, "term_taxonomy_id": 36, "таксономия": "специальности", "описание": "", «родитель»: 0, "считать": 0, «фильтр»: «сырой» }, { "term_id": 35, «имя»: «Детская больница»,"slug": "children-hospital", "term_group": 0, "term_taxonomy_id": 35, "taxonomy": "specialities", "description": "", "parent": 0, "count": 0, "фильтр ":" raw "}, {" term_id ": 39," name ":" Психиатрическая больница "," slug ":" психиатрическая больница "," term_group ": 0," term_taxonomy_id ": 39," таксономия ":"specialities", "description": "", "parent": 0, "count": 0, "filter": "raw"}, {"term_id": 38, "name": "Реабилитационная больница", "slug"":" реабилитационный госпиталь "," term_group ": 0," term_taxonomy_id ": 38," таксономия ":" specialities "," description ":" "," parent ": 0," count ": 0," filter ": "raw"}, {"term_id": 37, "name": "Центр травмы", "slug": "trauma-center", "term_group": 0, "term_taxonomy_id": 37, "taxonomy": "specialities"," description ":" "," parent ": 0," count ": 0," filter ":" raw "}]}, {" id ": 125," title ":" clinic "," dir_icon ": "icon-Clinichistorymedicalpaperonclipboard", "category_image": {"attachment_id": "2152", "url": "//themographics.com/wordpress/doc_api/wp-content/uploads/2017/01 / Clinic.jpg "}," dir_map_marker ": {" attachment_id ":" 131 "," url ":" //themographics.com/wordpress/doc_api/wp-content/uploads/2016/04/Clinic.png "}, "Education": "отключить", "опыт": "отключить", "отзывы": "включить", "заявки": "включить", "бронирования": "включить", "страхование": "включить","groups": "enable", "awards": "enable", "price_list": "enable", "specialities": [{"term_id": 27, "name": "Кардиологическая клиника", "slug": "кардиологическая клиника "," term_group ": 0," term_taxonomy_id ": 27," таксономия ":" specialities "," description ":" "," parent ": 0," count ": 0," filter ":" raw"}, {" term_id ": 25," name ":" Детская поликлиника "," slug ":" children-clinic "," term_group ": 0," term_taxonomy_id ": 25," taxonomy ":" specialities ","description ":" "," parent ": 0," count ": 0," filter ":" raw "}, {" term_id ": 26," name ":" дерматологическая клиника "," slug ":" dermatology-clinic "," term_group ": 0," term_taxonomy_id ": 26," taxonomy ":" specialities "," description ":" "," parent ": 0," count ": 0," filter ":" raw "}, {"term_id": 24,"name": "ЛОР-клиника", "slug": "ent-clinic", "term_group": 0, "term_taxonomy_id": 24, "taxonomy": "specialities", "description": "", "parent":0, "count": 0, "filter": "raw"}, {"term_id": 23, "name": "Семейная клиника", "slug": "family-clinic", "term_group": 0, "term_taxonomy_id ": 23," таксономия ":" specialities "," description ":" "," parent ": 0," count ": 0," filter ":" raw "}]}, {" id ": 123,"title": "Pharmacy", "dir_icon": "icon-Pills", "category_image": {"attachment_id": "2150", "url": "//themographics.com/wordpress/doc_api/wp-content/uploads / 2017/01 / Pharmacy.jpg "}," dir_map_marker ": {" attachment_id ":" 5 "," url ":" //themographics.com/wordpress/doc_api/wp-content/uploads/2016/03/01.png "}," Education ":" отключить "," опыт ":" отключить "," отзывы ":" включить "," заявки ":" включить "," бронирования ":" включить "," страхование ":"включить", "команды": "включить", "награды": "включить", "прайс-лист": "включить", "специальности": [{"term_id": 47, "имя": "Клиническая аптека", "слизень ":" Клиника-фармация "," группа_терминала "": 0,"term_taxonomy_id": 47, "таксономия": "specialities", "description": "", "parent": 0, "count": 0, "filter": "raw"}, {"term_id": 48, "name ":" Community pharmacy "," slug ":" community-pharmacy "," term_group ": 0," term_taxonomy_id ": 48," taxonomy ":" specialties "," description ":" "," parent ": 0, "count": 0, "filter": "raw"}, {"term_id": 49, "name": "Compliance (Medicine)", "Slug": "Compliance-Medicine", "term_group": 0,"term_taxonomy_id": 49, "таксономия": "specialities", "description": "", "parent": 0, "count": 0, "filter": "raw"}, {"term_id": 50, "name ":" Distribution (pharmacology) "," slug ":" distribution-pharmacology "," term_group ": 0," term_taxonomy_id ": 50," taxonomy ":" specialities "," description ":" "," parent ": 0, "count": 0, "filter": "raw"}, {"term_id": 51, "name": "Тест на реакцию на наркотики", "slug": "Тест на реакцию на наркотики", "term_group": 0, "term_taxonomy_id": 51, "таксономия": "specialities", "description": "", "parent": 0, "count": 0, "filter": "raw"}, {"term_id":52, "имя": "Проблемы медикаментозной терапии", "Слизняк": "Проблемы медикаментозной терапии", "Группа_групп": 0, "Термин_таксономия_ид": 52, "Таксономия": "Специальности", "Описание": "", "Родитель":0, "count": 0, "filter": "raw"}]}, {"id": 122, "title": "Банк крови", "dir_icon": "icon-BloodDonation", "category_image": {"attachment_id": "2151", "url": "//themographics.com/wordpress/doc_api/wp-content/uploads/2017/01/Blood-Bank.jpg"}, "dir_map_marker": {"attachment_id":"130", "url": "//themographics.com/wordpress/doc_api/wp-content/uploads/2016/04/Bloog-Bank.png"}, "Education": "Disable", "Experience": "отключить "," отзывы ":" включить "," заявки ":" включить "," бронирования ":" включить "," страхование ":" включить "," команды ":" включить "," награды ":" включить ", "price_list": "enable", "specialties": [{"term_id": 46, "name": "Associazione Volontari", "slug": "associazione-volontari-italiani-sangue", "term_group": 0,"term_taxonomy_id": 46, "таксономия": "specialities", "description": "", "parent": 0, "count": 0, "filter": "raw"}, {"term_id": 40, "name": "Blood Services", "slug": "blood-services", "term_group": 0, "term_taxonomy_id": 40, "taxonomy": "specialities", "description": "", "parent": 0," count ": 0," filter ":" raw "}, {" term_id ": 41," name ":" Центр служб крови "," slug ":" Центр биологических служб крови "-оценка-и-исследование "," term_group ": 0," term_taxonomy_id ": 41," таксономия ":" specialities "," description ":" "," parent ": 0," count ": 0," filter ": "raw"}, {"term_id": 42, "name": "Community Blood Services", "slug": "community-blood-services", "term_group": 0, "term_taxonomy_id": 42, "таксономия": "specialties", "description": "", "parent": 0, "count": 0, "filter": "raw"}, {"term_id": 43, "name": "Registry Cord Blood","slug": "реестр пуповинной крови", "term_group": 0, "term_taxonomy_id": 43, "таксономия": "specialties", "description": "", "parent": 0, "count": 0, "filter": "raw"}, {"term_id": 44, "name": "General Bank Blood", "slug": "general-blood-bank", "term_group": 0,"term_taxonomy_id": 44, "таксономия": "specialities", "description": "", "parent": 0, "count": 0, "filter": "raw"}, {"term_id": 45, "имя ":" Международное общество переливания крови "," Слизняк ":" Международное общество переливания крови "," term_group ": 0," term_taxonomy_id ": 45," Таксономия ":" специальности "," описание ": "", "parent": 0, "count": 0, "filter": "raw"}]}, {"id": 121, "title": "Fitness Center", "dir_icon": "icon-hairs "," category_image ": {" attachment_id ":" 2154 "," url ":" //themographics.com/wordpress/doc_api/wp-content/uploads/2017/01/Fitness-Center.jpg "},"dir_map_marker ": {" attachment_id ":" 132 "," url ":" //themographics.com/wordpress/doc_api/wp-content/uploads/2016/04/Fitness.png "}," education ":" disable ", "опыт": "отключить", "отзывы": "включить", "заявки": "включить", "бронирования": "включить", "страхование": "включить", "команды": "включить", "awards ":" enable "," price_list ":" enable "," specialities ": [{" term_id ": 28," name ":" Aerobic Centers "," slug ":" aerobic-центров ","term_group": 0, "term_taxonomy_id": 28, "таксономия": "specialities", "description": "", "parent": 0, "count": 0, "filter": "raw"}, {"term_id ": 33," name ":" Спортивные клубы "," slug ":" sportstic-club "," term_group ": 0," term_taxonomy_id ": 33," taxonomy ":" specialities "," description ":" ", "parent": 0, "count": 0, "filter": "raw"}, {"term_id": 34, "name": "Country Clubs", "slug": "country-клубы", "term_group"": 0," term_taxonomy_id ": 34," таксономия ":" specialities "," description ":" "," parent ": 0," count ": 0," filter ":" raw "}, {" term_id ": 30, "name": "Dance Centres", "slug": "dance-центров", "term_group": 0, "term_taxonomy_id": 30, "taxonomy": "specialities", "description": "", "parent ": 0," count ": 0," filter ":" raw "}, {" term_id ": 32," name ":" Gyms "," slug ":" gyms "," term_group ": 0,"term_taxonomy_id ": 32," таксономия ":" specialities "," description ":" "," parent ": 0," count ": 0," filter ":" raw "}, {" term_id ": 31," name":" Центры пилатеса "," Слизняк ":" Центры пилатеса "," term_group ": 0,"term_taxonomy_id": 31, "таксономия": "specialities", "description": "", "parent": 0, "count": 0, "filter": "raw"}, {"term_id": 29, "name ":" Центры йоги "," slug ":" йога-центры "," term_group ": 0," term_taxonomy_id ": 29," таксономия ":" specialities "," description ":" "," parent ": 0, "count": 0, "filter": "raw"}]}]

...