Runtime.ObjectPreview

Object containing abbreviated remote object value.

{
  "id": "ObjectPreview",
  "type": "object",
  "description": "Object containing abbreviated remote object value.",
  "properties": [
    {
      "name": "type",
      "type": "string",
      "enum": [
        "object",
        "function",
        "undefined",
        "string",
        "number",
        "boolean",
        "symbol"
      ],
      "description": "Object type."
    },
    {
      "name": "subtype",
      "type": "string",
      "optional": true,
      "enum": [
        "array",
        "null",
        "node",
        "regexp",
        "date",
        "error",
        "map",
        "set",
        "weakmap",
        "weakset",
        "iterator",
        "class"
      ],
      "description": "Object subtype hint. Specified for object type values only."
    },
    {
      "name": "description",
      "type": "string",
      "optional": true,
      "description": "String representation of the object."
    },
    {
      "name": "lossless",
      "type": "boolean",
      "description": "Determines whether preview is lossless (contains all information of the original object)."
    },
    {
      "name": "overflow",
      "type": "boolean",
      "optional": true,
      "description": "True iff some of the properties of the original did not fit."
    },
    {
      "name": "properties",
      "type": "array",
      "items": {
        "$ref": "PropertyPreview"
      },
      "optional": true,
      "description": "List of the properties."
    },
    {
      "name": "entries",
      "type": "array",
      "items": {
        "$ref": "EntryPreview"
      },
      "optional": true,
      "description": "List of the entries. Specified for map and set subtype values only."
    },
    {
      "name": "size",
      "type": "integer",
      "optional": true,
      "description": "Size of the array/collection. Specified for array/map/set/weakmap/weakset object type values only."
    }
  ]
}