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

Return one of every JSON value type, including empty and look-alike values

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

Responses

200
Success.

Example

Request
curl -X GET "https://api.testingapis.com/api/edge-cases/types" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "string": "hello",
  "emptyString": "",
  "integer": 42,
  "negativeInteger": -7,
  "float": 3.14159,
  "exponent": 6.022e+23,
  "booleanTrue": true,
  "booleanFalse": false,
  "nullValue": null,
  "array": [1, 2, 3],
  "emptyArray": [],
  "object": {"key": "value"},
  "emptyObject": {},
… (6 more lines)

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.