Answer the question
In order to leave comments, you need to log in
How to parse a non-associative JSON array in PHP?
$data = '["soderjymoe"]';
$data_j = json_decode($data, true);
echo $data_j[0];
Answer the question
In order to leave comments, you need to log in
json_last_error writes a syntax error.
well that means the json is invalid...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question