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

Return an object with awkward keys

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

Return an object with awkward keys: empty, dotted, __proto__, quoted, emoji and case variants.

Responses

200
Success.

Example

Request
curl -X GET "https://api.testingapis.com/api/edge-cases/special-keys" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "": "empty key",
  " ": "space key",
  "key with spaces": 1,
  "key.with.dots": 2,
  "key-with-dashes": 3,
  "key_with_underscores": 4,
  "key/with/slashes": 5,
  "key[0]": 6,
  "123": "numeric key",
  "0": "zero key",
  "$ref": "#/definitions/user",
  "@type": "Person",
  "__proto__": {"polluted": true},
… (13 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.