Скрипт на 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
Development of a WordPress website
23 USD
We are looking for a contractor to develop a custom website on WordPress for a jewelry store. The first stage will be a consultation. Content Management Systems, PHP ∙ 2 days 3 hours back ∙ 66 proposals |
The WooCommerce cart (WordPress) is broken — it does not add products and the cart page does not open.On the website of the online store https://www.dobryi-gospodar.com/ (WordPress + WooCommerce), the checkout function has completely stopped working. When clicking the "Add to cart" button (both in the product card and in the catalog), a long loading process begins (the indicator… Content Management Systems, PHP ∙ 2 days 5 hours back ∙ 60 proposals |
Product search function by imageIt is necessary to develop and integrate a product search function by image on the website.What needs to be implementedA "Search by Photo" button on the website.Image upload by the user: JPG.Search for visually similar products in the catalog.Display results in the form of… PHP, Web Programming ∙ 2 days 12 hours back ∙ 45 proposals |
Parser expireddomains.net
113 USD
A parser is needed for expireddomains.net. You need to log in to the site first; the problem is that it blocks the IP when trying to parse data. You need to parse thematic domains based on a list of keywords. If you are not confident in your abilities, please do not write. PHP, Web Programming ∙ 4 days 11 hours back ∙ 51 proposals |
Integration of payment service with Sales Force
70 USD
There is a payment system widget on the site that needs to be integrated with Salesforce so that all required parameters are visible on the Salesforce side. It needs to be done in such a way that all payments and subscriptions are controlled through Salesforce. PHP, Web Programming ∙ 4 days 14 hours back ∙ 41 proposals |