Answer the question
In order to leave comments, you need to log in
How to decode such JSON?
Hello everyone, guys, help me solve the problem, there is JSON data https://pastebin.com/8A6cZXXy , they are valid, but I can’t understand why the information is not parsed through json_decode(); what did I do wrong as soon as I did not try to always return null?
$file = file_get_contents($_SERVER['DOCUMENT_ROOT'] ."\public\json_update\data.txt");
$json = json_decode($file, true);
echo '<pre>';
var_dump($json);
echo '</pre>';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question