Welcome folks today in this blog post we will be
formatting and beautify json string objects using
php 7. All the full source code of the application is shown below.
In order to get started you need to make an
index.php file and copy paste the following code
<?php $json_arr = array( 'obj 1' => "value 1", 'obj 2' => "value 2", 'obj 3' => "value 3" ); echo json_encode($json_arr, JSON_PRETTY_PRINT); ?>