<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabularData",
  "identifier" : "/documentation/TabularData/JSONReadingError/wrongType(row:column:expectedType:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "TabularData"
    ],
    "preciseIdentifier" : "s:11TabularData16JSONReadingErrorO9wrongTypeyACSi_SSAA8JSONTypeOs8Sendable_ptcACmF"
  },
  "title" : "JSONReadingError.wrongType(row:column:expectedType:value:)"
}
-->

# JSONReadingError.wrongType(row:column:expectedType:value:)

An error that occurs when the JSON data contains a value of the wrong type for a type-constrained column.

```
case wrongType(row: Int, column: String, expectedType: JSONType, value: any Sendable)
```

## Parameters

`row`

The index of the row that contains the incorrect value.

`column`

The name of the column that contains the incorrect value.

`expectedType`

The expected type.

`value`

The JSON value.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)