TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Return deliberately invalid JSON labelled application/json

GEThttps://api.testingapis.com/api/formats/malformed-jsonSign in to see this endpoint's URL

Return deliberately invalid JSON labelled application/json.

For negative testing: the body has a trailing comma and a truncated literal, so every JSON parser must fail on it.

Responses

200
Success.

Example

Request
curl -X GET "https://api.testingapis.com/api/formats/malformed-json" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"id": 1, "name": "Alice", "tags": ["a", "b",], "active": tru

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.