{
  "source": "middleware.js",
  "method": "json",
  "input-schema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "type": {
        "type": "array",
        "description": "By default the middleware parses the request if the Content-Type is application/json. To enable other Content-Types, specify it here. e.g. application/*+json",
        "items": {
          "type": "string",
          "title": "type",
          "enum": ["application/json", "application/*+json"]
        }
      },
      "limit": {
        "type": "any",
        "description": "Controls the maximum request body size. Can be a number (number of bytes) or a string (e.g. '100kb')"
      }
    }
  },
  "output-schema": {
    "type": "any"
  },
  "meta": {
    "name": "json",
    "isInterface": true,
    "description": "Parse request body as JSON",
    "inherits": "core/http/middleware/interface"
  }
}