Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/env php
- <?php
- $raw = file_get_contents('php://stdin');
- $decoded = json_decode($raw);
- echo $decoded === null ? $raw : json_encode($decoded, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
- echo PHP_EOL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement