<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "TabularData"
    ],
    "preciseIdentifier" : "s:11TabularData16JSONReadingErrorO"
  },
  "title" : "JSONReadingError"
}
-->

# JSONReadingError

A JSON reading error.

```
enum JSONReadingError
```

## Topics

### Getting Error Information

[`case failedToParse(row: Int, column: String, type: JSONType, contents: String)`](/documentation/TabularData/JSONReadingError/failedToParse(row:column:type:contents:))

An error that occurs when a JSON value fails to parse as the specified type.

[`case incompatibleValues(column: String)`](/documentation/TabularData/JSONReadingError/incompatibleValues(column:))

An error that occurs when the JSON data contains incompatible values in a column.

[`case unsupportedStructure`](/documentation/TabularData/JSONReadingError/unsupportedStructure)

An error that occurs when the JSON structure is incompatible with a data frame.

[`case wrongType(row: Int, column: String, expectedType: JSONType, value: any Sendable)`](/documentation/TabularData/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.

### Default Implementations

[CustomStringConvertible Implementations](/documentation/TabularData/JSONReadingError/CustomStringConvertible-Implementations)

[LocalizedError Implementations](/documentation/TabularData/JSONReadingError/LocalizedError-Implementations)

## Relationships

### Conforms To

[`Copyable`](/documentation/Swift/Copyable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`LocalizedError`](/documentation/Foundation/LocalizedError)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Error`](/documentation/Swift/Error)

[`Escapable`](/documentation/Swift/Escapable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)