D
D
Driver0black2021-07-03 22:14:18
PHP
Driver0black, 2021-07-03 22:14:18

Syntax error on decode, what's the problem?

I get a response from the server https://ratings.utmn.ru/api/rating/?action=ratingd...

But when decoded, a syntax error occurs and outputs NULL
When viewed through the online json editor, everything is OK

$json = file_get_contents("https://ratings.utmn.ru/api/rating/?action=ratingdata&pageid=30bd2021-76a8-43ba-bee5-cf04c6ea5828");
$obj = json_decode($json);
var_dump($obj);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question