Quantcast
Channel: Observe – S V N Labs Softwares
Viewing all articles
Browse latest Browse all 100

Pretty Print JSON

$
0
0
We can use function json_print() to explore JSON data, since JSON has no spacing or indentation. The function json_print() make JSON data to display in the human-readable format. <?php function json_print($json) {     $result = '';     $pos = 0;     $strLen = strlen($json);     $indentStr = ' ';     $newLine = "\n";     $prevChar = '';     $outOfQuotes = true;     for … Continue reading Pretty Print JSON

Viewing all articles
Browse latest Browse all 100

Trending Articles