Skip to content

Instantly share code, notes, and snippets.

@jkullick
Last active June 13, 2022 10:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkullick/f80cc3c189260a970ce0a6bef0144397 to your computer and use it in GitHub Desktop.
Save jkullick/f80cc3c189260a970ce0a6bef0144397 to your computer and use it in GitHub Desktop.
Convert Serialized PHP to JSON
cat $SERIALIZED_PHP_FILE | php -r 'echo json_encode(unserialize(file_get_contents("php://stdin")));'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment