Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel json

//json encode
return response()->json([
    'name' => 'Abigail',
    'state' => 'CA',
]);

//now decode
$response = json_decode($response->getContent()) ;
 
PREVIOUS NEXT
Tagged: #laravel #json
ADD COMMENT
Topic
Name
6+6 =