Last Updated: 2022-04-02 07:59:31 UTC
by Didier Stevens (Version: 1)
It's actually a combination of the following options:
--header "Content-Type: application/json"
--header "Accept: application/json"
Notice that curl does not check if the provided data is a valid JSON expression:
More JSON features may be added to curl in the future, but that debate is still ongoing.