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.
(c) SANS Internet Storm Center. https://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.