Display JSON File content using PHP [closed] April 19, 2022 by Tarik Billa If your on php 4.5 or above you can use the JSON_PRETTY_PRINT. $json_string = json_encode($data, JSON_PRETTY_PRINT); Browse More Popular Posts Unix O_CREAT flag without mode specified Vscode TS language features unavailable when tests/** are not included in the tsconfig VBA Internet Explorer wait for web page to load Read func interp of a z3 array from the z3 model Is accessing the “value” of a linker script variable undefined behavior in C? Is the hash required for immediate values in ARM assembly? Hibernate Issue : Foreign key must have same number of columns as referenced primary key Converting from Swift string to const char* Why does StandardOutput.Read() block when StartInfo.RedirectStandardInput is set to true? How to remove an element from a nested list? Javascript Function and Form Name conflict Printf without newline in assembly mongodb aggregate query isn’t returning proper sum on using $sum jQuery 1.5.1 breaks all ajax() calls Release java memory for OS at runtime converting a date string into milliseconds in java [duplicate] json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT Python record audio on detected sound Hiding address bar in all browsers [duplicate] Extend an irregular sequence and add zeros to missing values