Скрипт на PHP. Импорт из JSON файла в базу
6 USDВ прикрепленных файлах есть файл koatuu.json.
Необходимо разработать скрипт на PHP, которые проходит вложенную структуру JSON и формирует строки с конечными адресами.
Поясняю по json:
Находимся на level1, берем название АВТОНОМНА РЕСПУБЛІКА КРИМ/М.СІМФЕРОПОЛЬ. Опускаемся ниже level2, берем МІСТА АВТОНОМНОЇ РЕСПУБЛІКИ КРИМ. Опускаемся ниже level3, берем значения СІМФЕРОПОЛЬ
"code": "0110130000",
"name": "РАЙОНИ М.СІМФЕРОПОЛЯ",
"type": ""
В результате для 0110130000 получаем строку: АВТОНОМНА РЕСПУБЛІКА КРИМ/М.СІМФЕРОПОЛЬ , МІСТА АВТОНОМНОЇ РЕСПУБЛІКИ КРИМ , СІМФЕРОПОЛЬ, РАЙОНИ М.СІМФЕРОПОЛЯ
Аналогично для всех остальных данных. Максимальная вложенность level4.
Также, скрипт должен выводить предпоследние вложенные элементы, например
"code": "0110100000",
"name": "СІМФЕРОПОЛЬ"
Скрипт должен выводить на экран построчно результат обработки:
"code": "0110100000", "name": "СІМФЕРОПОЛЬ", "type": ""
"code": "0110130000", "name": "АВТОНОМНА РЕСПУБЛІКА КРИМ/М.СІМФЕРОПОЛЬ , МІСТА АВТОНОМНОЇ РЕСПУБЛІКИ КРИМ , СІМФЕРОПОЛЬ, РАЙОНИ М.СІМФЕРОПОЛЯ", "type": ""
и так далее по файлу.
Работа через безопасную сделку
Applications 1
Client's review of cooperation with Yaroslav Zagorovsky
Скрипт на PHP. Импорт из JSON файла в базуРекомендую. Работа выполнена с опережением сроком. Исполнитель адекватный и аккуратный
Freelancer's review of cooperation with Konstantin M
Скрипт на PHP. Импорт из JSON файла в базуРаботать с Константином понравилось, адекватно подходит к ситуации, быстро отвечает на возникшие вопросы. Рекомендую!
Current freelance projects in the category PHP
Improvement of the website https://koleso-center.com/ on OpenCart
223 USD
Add categories to the online store websiteUsed disksSpare tiresFastenersData is taken from the 1C database.A few more questions Type of performer: single Backend developer (OpenCart/PHP) at the Middle levelThe modifications must meet all requirementsSEO + AI promotion AI… PHP ∙ 7 hours 40 minutes back ∙ 28 proposals |
Module for OpenCart: mass creation of products from folders with imagesDevelopment of a mass product creation module for OpenCart (ocStore 3.x) A backend module for OpenCart / ocStore 3.x needs to be developed that automatically creates products from a pre-prepared folder structure with images.Main functionality: mass creation of products from… Content Management Systems, PHP ∙ 1 day 13 hours back ∙ 46 proposals |
Looking for a Bitrix24 specialist / CRM integrator to set up automation.Our company works with CRM Bitrix24. We need a specialist who can set up automatic addition of phone numbers to leads/orders in two formats. Automation must be correctly configured for two countries: the Republic of Moldova and Romania. Task: When creating a lead or order in… PHP, Web Programming ∙ 4 days 16 hours back ∙ 24 proposals |
Website optimizationOptimization of the website jdgreta.co.uk on Shopify. SEO audit attached to the project. Main tasks - - Fix all meta data - Complete the technical specifications for the programmer (since this project combines tasks for both the programmer and SEO, if you are not a company -… HTML & CSS, PHP ∙ 5 days 12 hours back ∙ 33 proposals |
Horoshop SpecialistNeed a specialist who can correctly set up the product Feed. Problem: Currently, over 13,000 products are being uploaded with the same type value (e.g., "everything for manicure and pedicure"). Because of this, it is impossible to segment products in Google Ads and set different… PHP, Website Maintenance ∙ 6 days 15 hours back ∙ 21 proposals |