public JSONWriteException(message as String = "Value cannot be represented as JSON"):
Creates a JSON serialization error.
| Parameter | Description |
|---|---|
message | Description of the value that cannot be represented. |
error = JSONWriteException("JSON object property names must be unique")
print(error.message)