Pages

Monday, July 14, 2014

Convert serialized PHP data into JSON

$ php -r 'echo json_encode( unserialize( file_get_contents( "php://stdin" ) ) );'

Pipe serialized data into the command.




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/U4EYAY

No comments:

Post a Comment