Bro, I had the same issue last week! For curl post give input from file, you gotta make sure the JSON is valid. Run `jq . data.json` to check.
Also, some APIs expect the data as `--data-binary` instead of `-d`. Try:
`curl -X POST http://example.com/api --data-binary @data.json`
Might work better for raw JSON.
Also, some APIs expect the data as `--data-binary` instead of `-d`. Try:
`curl -X POST http://example.com/api --data-binary @data.json`
Might work better for raw JSON.
