Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php dies while parsing json

// scrap this:
$data = json_decode($rawdata);

// use this:
$data = json_decode($rawdata, true);
//for some reason it starts working
echo $data["key1"];
 
PREVIOUS NEXT
Tagged: #php #dies #parsing #json
ADD COMMENT
Topic
Name
5+1 =