I have a PHP file that runs a Perl script, using popen and the perl script outputs the following back to the php
{ 'City' => [ 'LA', 'Chicago', 'NY' ], 'Name' => 'Kevin Bridges', 'Id' => '7075', 'Last-Status-Change' => { 'Time' => 14172911, 'User' => 'kbridge', 'To' => 'LAX', 'From' => 'ORD' }}
I cannot modify the perl script, and I really don't know the contents of it. But it looks like it is outputting JSON. I have tried using json_encode to grab the contents of the output but no success. Can anyone tell me if it is possible to parse this or do I have to manually write a parser?