Skip to main content

malformed-json

HTTP 400 · Tenant fixable.

The request body could not be parsed as JSON. Typical causes:

  • Trailing commas ({"a":1,}).
  • Single quotes instead of double quotes.
  • Encoding other than UTF-8.

How to fix

  • Validate the payload with jq or a JSON linter before sending.
  • Make sure to send Content-Type: application/json; charset=utf-8.

Example

{
"type": "https://errors.api.erply.pro/malformed-json",
"title": "Malformed JSON",
"status": 400,
"detail": "Expecting property name enclosed in double quotes: line 3 column 5 (char 24)"
}