4 ms·
Yeah, JSON on the command line can be a big PITA, especially when it comes to escaping. The old `curl -vvv -X POST --data @foo.json http://example.com` http://e
by seanp2k2 11y ago
Yeah, JSON on the command line can be a big PITA, especially when it comes to escaping. The old `curl -vvv -X POST --data @foo.json http://example.com` http://example.com` trick mostly works, but isn't the most elegant thing in the world.
This just might be, and it'll write the curl command for you too :)
- mattkrea 11y agoAgreed. On a more positive note.. jq absolutely blows my mind for working in the other direction (reading) jq: http://stedolan.github.io/jq/ http://stedolan.github.io/jq/
- dozzie 11y agojq is small peanuts compared to App::RecordStream. https://metacpan.org/release/App-RecordStream https://metacpan.org/release/App-RecordStream https://metacpan.org/pod/App::RecordStream::Manual::Story https://metacpan.org/pod/App::RecordStream::Manual::Story https://metacpan.org/pod/App::RecordStream::Manual::Examples https://metacpan.org/pod/App::RecordStream::Manual::Examples