Hello, I need a PHP script to convert a JSON file (I''ve included a sample named [login to view URL]) to an XML file (I've included a sample name [login to view URL]).
The script must be compatible with PHP 5.6 and above and PHP 7 and above.
The real json file contains more than 2500 records, so the script must manage all the process without causing memory errors or other issues.
I need that PHP script will clean and organize the data in this way:
- In the JSON file, all the lines that starts with:
"QryGroup…
must be ignored (I don't need them).
- Records like these in the JSON file:
"MarchiTrattati": [
"VOLUPTATE",
"RATIONE",
"RATIONE MD",
"MEHERCULE",
"PERVERSITAS"
],
must become like these in the XML file:
<MarchiTrattati>VOLUPTATE, RATIONE, RATIONE MD, MEHERCULE, PERVERSITAS</MarchiTrattati>
- When there are multiple values in the JSON Array "Indirizzi":
"Indirizzi": [
{
"IdLineNum": 1,
"CodCliente": "C00234",
"Via": "VIA ALZIO, 55",
"CAP": "36020",
"Citta": "Lorem del Nappa",
"Regione": "VEN",
"Prov": "VI",
"Localita": null,
"Tipo": "S",
"NomeIndirizzo": "[login to view URL] ALFIO DR. ROSSI| LOREM DEL NAPPA",
"Predefinito": false
},
{
"IdLineNum": 2,
"CodCliente": "C00234",
"Via": "VIA VITTORIO EMANUELE, 1",
"CAP": "35010",
"Citta": "San Mario in Gu",
"Regione": "VEN",
"Prov": "PD",
"Localita": null,
"Tipo": "S",
"NomeIndirizzo": "LOREM ALFIO DR. ROSSI",
"Predefinito": true
}
]
I need to save in the XML file only the one with the value "Predefinito": true
Thanks.
For any other questions, ask me what you need to know.
I am a PHP expert with over 7 years of experience and I can do your work. I can start immediately and can complete it. Please check my reviews in https://www.freelancer.com/u/abhi98041 to see the quality of work I provide.
€250 EUR in 3 giorni
4,9 (155 valutazioni)
6,1
6,1
8 freelance hanno fatto un'offerta media di €199 EUR
"QryGroup" I can start it right away to write PHP script to convert json to xml. I'm experienced developer. Contact me for quick and quality results. I can answer your concerns in better way.
Looking forward to hear back.
Thanks
hi there ,
i have work on xml with php and c# and other languages . i am ready to start work on this project after assigning . waiting for your good response
regards
tscreators
Hi there :) I have seen Your both sample files and would love to create this script! Ready to discuss further.
By the way, there was a missing CLOSING BRACKET on your </row element at the end :) but yes, I understand the syntax though!
Let's discuss.
Usama
Hi - I am an IT professional with 2 decades of experience of which 18 years were with Infosys. Having worked for customers like Apple, Microsoft, Boeing, TI for most part of my career you can expect thorough professionalism from me in all aspects.
I am highly technical and have played roles from developer to architect. I have 2 patents in US.
Give the task to me and rest assured that you are in safe hands.