90% Discount Hostinger Coupon 1CODERX53
896+ Capstone Project is Available: Whatsapp: +91-7011258995, Email: sharecodepoint@gmail.com

How Do I Make a JSON Pretty Printer App Using PHP for Development/Debugging Use as a Coder?

How Do I Make a JSON Pretty Printer App Using PHP for Development/Debugging Use as a Coder?
You'll know you don't wanna publish your app's JSON response, which may include important information, to some third-party website that could easily or accidentally log this info. I think, decrypted passwords might be in your response, API keys, and the name of your app. Lots of stuff can't nobody but you should see. So here, make your own JSON PRETTY PRINTER using PHP and RUN IT LOCALLY on your computer.

<?php
$str = <<<'EOT'
{"name_first":"John"}
EOT;
echo json_encode(json_decode($str), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
?>

Save the file. Name it something such as JSON-pretty-printer.php and then run it on the command line by typing 'php' and then the path to your script. Hit the enter button.

Sharecodepoint

Sharecodepoint is the junction where every essential thing is shared for college students in the well-defined packets of codes. We are focused on providing you the best material package like Question papers, MCQ'S, and one NIGHT STUDY MATERIAL. facebook twitter youtube instagram

Post a Comment

Previous Post Next Post

Contact Form