How do i nicely decode Laravel failed jobs JSON
laravel, laravel-5, php, queue
Solution
Read from failed_jobs table
json_decode the payload from failed_jobs table
$jsonpayload = json_decode($payload);
unserialize the payload command
$data = unserialize($jsonpayload->data->command);
print_r($data);//This is the data passed to queue
Problem
How should i decode and "prettify" Laravel`s failed-jobs payload? In my DB in table failed_jobs i have column payload that reads like this: ``` {"job":"Illuminate\\Queue\\CallQueuedHandler@call","data":{"commandName":"App\\Jobs\\createHostingOncPanel","command":"O:30:\"App\\Jobs\\createHostingOncPanel\":7:{s:10:\"\u0000*\u0000orderNo\";i:11;s:18:\"\u0000*\u0000hostingPackages\";s:45:\"[{\"domainName\":\"qwddqwd.io\",\"hostingType\":1}]\";s:7:\"\u0000*\u0000user\";O:45:\"Illuminate\\Contracts\\Database\\ModelIdentifier\":2:{s:5:\"class\";s:8:\"App\\User\";s:2:\"id\";i:1;}s:10:\"connection\";N;s:5:\"queue\";N;s:5:\"delay\";N;s:6:\"\u0000*\u0000job\";N;}"}} ``` Would like to get the string json decoded into something readable. What kind of format is this? :) PS: This is a Laravel 5.2 version