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

Return nulls alongside null-like values such as "null", empty strings, 0 and false

GEThttps://api.testingapis.com/api/edge-cases/nullsSign in to see this endpoint's URL

Return nulls alongside null-like values such as "null", empty strings, 0 and false.

Responses

200
Success.

Example

Request
curl -X GET "https://api.testingapis.com/api/edge-cases/nulls" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "nullValue": null,
  "nestedNull": {"a": null, "b": {"c": null}},
  "arrayOfNulls": [null, null, null],
  "arrayWithNull": [1, null, 3],
  "nullAsString": "null",
  "undefinedAsString": "undefined",
  "noneAsString": "None",
  "emptyString": "",
  "emptyArray": [],
  "emptyObject": {},
  "zero": 0,
  "false": false
}

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.