Answers for "how to convert string json to json php"

PHP
0

php json data to array

json_decode('{foo:"bar"}');         // this fails
json_decode('{"foo":"bar"}', true); // returns array("foo" => "bar")
json_decode('{"foo":"bar"}');       // returns an object, not an array.
Posted by: Guest on October-15-2021

Code answers related to "how to convert string json to json php"

Browse Popular Code Answers by Language