4 ms·
Is there a way to show the output in json format?
by kolinkorr839 6y ago
Is there a way to show the output in json format?
- mike-cardwell 6y agoWould be nice if both of these work (they don't): curl https://ec2.shop https://ec2.shop -H 'Accept: application/json' curl https://ec2.shop?json https://ec2.shop?json
- kureikain 6y agoIt should work that way now :-). Thanks for suggestion.
- kureikain 6y agoPer suggest by mike-cardwell, I implemented this: curl https://ec2.shop -H 'Accept: application/json' curl 'https://ec2.shop?json' curl 'https://ec2.shop?txt'