---
title: "JSONReadingError.wrongType(row:column:expectedType:value:)"
framework: Tabular Data
role: symbol
role_heading: Case
platforms: [iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+, macOS 12.0+, tvOS 15.0+, visionOS 1.0+, watchOS 8.0+]
path: "tabulardata/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.

## Declaration

```swift
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.

## See Also

### Getting Error Information

- [JSONReadingError.failedToParse(row:column:type:contents:)](tabulardata/jsonreadingerror/failedtoparse(row:column:type:contents:).md)
- [JSONReadingError.incompatibleValues(column:)](tabulardata/jsonreadingerror/incompatiblevalues(column:).md)
- [JSONReadingError.unsupportedStructure](tabulardata/jsonreadingerror/unsupportedstructure.md)
