load json in php code example
Example 1: php decode json file
$json = json_decode(file_get_contents('/path/to/your/file.json'));
Example 2: php json encode
$person = array(
"name" => "Johny Carson",
"title" => "CTO"
);
$personJSON=json_encode($person);//returns JSON string