Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get object josn

$json = '
{
    "type": "donut",
    "name": "Cake"
}';

$yummy = json_decode($json);

echo $yummy->type; //donut
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #object #josn
ADD COMMENT
Topic
Name
4+4 =