convert data in the postman api using laravel closed class

json_encode() has a flag JSON_PRETTY_PRINT

echo json_encode($data, JSON_PRETTY_PRINT);

Or you can use JSON beautifier websites like this

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top