The time might come when we add some JSON specific command line options
I've included --json in a custom redefinition for years, glad to see something like that coming to the official binary!<p><pre><code>    curl() {
      args=()
      for arg in "$@"; do
        case $arg in
        --json) args+=("-H" "Content-Type: application/json") ;;
        *) args+=("$arg") ;;
        esac
      done
      command curl "${args[@]}"
    }</code></pre>