Json string transform as output from php

I need to change the php code in the file so instead of the current json output:

{"as":"lala","date":"2026-02-26 12:33:20","usa":"0\n","usage":{"zone_1":{"total":"0\n","apis":[{"hiii":"0\n"},{"hello":"0\n"}]},"zone_2":{"total":"0\n","apis":[{"eee":"0\n"}]}}}

it would return this json outcome:

{"as":"lala","date":"2026-02-26 12:33:20","usa":"0\n","usage":{"zone_1":{"total":"0\n","apis":{"hiii":"0\n","hello":"0\n"}},"zone_2":{"total":"0\n","apis":{"eee":"0\n"}}}}

this is the PHP code I use to get it:

$zone = array_diff(scandir(‘/lalala', 1), array('..', '.') );

foreach($zone as $name ) {

$zone_1[] = array(

substr($name, 0,-5) => file_get_contents('/lalala'.$name),



Taidot: JSON, PHP

Näytä lisää: need testing written php multiple choice, php goto page return, top ten php scripts need, php parse json array, json to php array online, php create json object, php json stringify, php json_decode example, string to json php, php json foreach key value, how to get data from json array in php, php programmer need 200812, php pages need doctypes, need fixes upgrade php site, getafreelancer need fixes upgrade php site, return url php, need fresh inbox php mailer, need sample project php mysql, need help installing php website server, need open source php based competition

Tietoa työnantajasta:
( 7 arvostelua ) Beijing, China

Projektin tunnus: #22209371

Myönnetty käyttäjälle:


Hello, ⭐⭐⭐⭐⭐ i am interested in this project , can begin now waiting your answer on chat Regards ⭐⭐⭐⭐⭐

$2 USD / tunti
(22 Arvostelua)

13 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_18% %project_currencyDetails_sign_sub_19%/tunti tähän työhön


Sir, I have gone through your project description and am looking to provide my service for json sending reformatted. please leave a message on my chat so we can discuss the budget and deadline of the [login to view URL] more t Lisää

$8 USD / tunti
(150 arvostelua)

Hello, as i read your project description i found the requirement related to me so i applied for this via this proposal. well i have experience of this kind job to data entry work also you can check my profile. I will Lisää

$5 USD / tunti
(37 arvostelua)

Hi I had read Description and Understand your requirement. I am Expert in PHP, HTML and wordpress. I can complete your project on time in your budget. Let discuss for further detail. Thanks Rohit Kumar

$5 USD / tunti
(91 arvostelua)

Hi, My name is Aswani having 5+ years of experience in front-end technologies. I would like to have the opportunity to discuss your project with you. I have a very good grasp on working with Angular.Js, Vue.js, Reac Lisää

$5 USD / tunti
(19 arvostelua)

Hello. How are you. I'm software engineer and algorithm expert. I have many experiences in c, c++, c#, java, python, node.js. I can complete your project successfully. Thanks.

$5 USD / tunti
(1 arvostelu)

Hello, Dear! -----------------> I have 6+ expertise in Responsive UX/UI design, HTML5 and CSS3, JSON, PHP/ JS framework such as CI, Laravel, ReactJs... -----------------> I will assist you with the same so please con Lisää

$5 USD / tunti
(4 arvostelua)

Hi.I am really interested in your project. Especially I have a talent in Web. Now I am ready to work for you. Please contact me for any further discuss. Thanks.

$5 USD / tunti
(2 arvostelua)

Hi, i am php developer with more than 5 years of experience in php. i can update your current php code Thanks

$5 USD / tunti
(2 arvostelua)

i will complete in a few minutes i will complete in a few minutes i will complete in a few minutes i will complete in a few minutes i will complete in a few minutes

$5 USD / tunti
(0 arvostelua)

Hello, This project is quite easy for me, but I got some of questions to clear before we proceed [login to view URL] message me to have a quick chat.

$5 USD / tunti
(0 arvostelua)

hello sir am developper and i have rich experience in json with php so if you want professional work chat me

$5 USD / tunti
(0 arvostelua)

Hello, i can help you. it's easy. i will not take money. only good comment and assessment thank you

$5 USD / tunti
(0 arvostelua)