{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-extract-fields-and-tables-response-schema.json",
  "title": "ExtractFieldsAndTablesResponse",
  "description": "Result of extracting fields from a document",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-extract-api-openapi.yml#/components/schemas/ExtractFieldsAndTablesResponse",
  "type": "object",
  "properties": {
    "Successful": {
      "description": "True if successful, false otherwise",
      "type": "boolean"
    },
    "FieldResults": {
      "description": "Field value results from the extraction operation",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FieldValue"
      }
    },
    "TableResults": {
      "description": "Table value results from the extraction operation",
      "type": "array",
      "items": {
        "$ref": "#/$defs/TableResult"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "FieldValue": {
      "description": "Field value result of extracting fields from a document",
      "type": "object",
      "properties": {
        "FieldName": {
          "description": "Name of the field (note that spaces will be replaced with underscore)",
          "type": "string"
        },
        "FieldStringValue": {
          "description": "Primary or first string value of the field that was extractged from the document",
          "type": "string"
        },
        "AdditionalFieldStringValues": {
          "description": "Additional values for this field when the same field is present with multiple values, for example, if two instances of the same form occur in the same document",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "TableResult": {
      "description": "Table extracted from a document",
      "type": "object",
      "properties": {
        "Title": {
          "description": "Title of the table (optional)",
          "type": "string"
        },
        "Rows": {
          "description": "Rows of the table",
          "type": "array",
          "items": {
            "$ref": "#/$defs/TableResultRow"
          }
        }
      },
      "additionalProperties": false
    },
    "TableResultCell": {
      "description": "Cell of a row of a table extracted from a document",
      "type": "object",
      "properties": {
        "CellHeader": {
          "description": "Cell column header",
          "type": "string"
        },
        "CellValue": {
          "description": "Cell value as a string",
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "TableResultRow": {
      "description": "Row of a table extracted from a document",
      "type": "object",
      "properties": {
        "Cells": {
          "description": "Cells in the row",
          "type": "array",
          "items": {
            "$ref": "#/$defs/TableResultCell"
          }
        }
      },
      "additionalProperties": false
    }
  }
}