how to json decod from a text file in php code example Example: php decode json file $json = json_decode(file_get_contents('/path/to/your/file.json'));