# JsonParseError
<span class="source-link">[[Source]](src/json/json_parse_error.md#L-0-1)</span>

Structured parse error with location information.

```pony
class val JsonParseError is
  Stringable box
```

#### Implements

* [Stringable](builtin-Stringable.md) box

---

## Constructors

### create
<span class="source-link">[[Source]](src/json/json_parse_error.md#L-0-8)</span>


```pony
new val create(
  message': String val,
  offset': USize val,
  line': USize val)
: JsonParseError val^
```
#### Parameters

*   message': [String](builtin-String.md) val
*   offset': [USize](builtin-USize.md) val
*   line': [USize](builtin-USize.md) val

#### Returns

* [JsonParseError](json-JsonParseError.md) val^

---

## Public fields

### let message: [String](builtin-String.md) val
<span class="source-link">[[Source]](src/json/json_parse_error.md#L-0-4)</span>



---

### let offset: [USize](builtin-USize.md) val
<span class="source-link">[[Source]](src/json/json_parse_error.md#L-0-5)</span>



---

### let line: [USize](builtin-USize.md) val
<span class="source-link">[[Source]](src/json/json_parse_error.md#L-0-6)</span>



---

## Public Functions

### string
<span class="source-link">[[Source]](src/json/json_parse_error.md#L-0-13)</span>


```pony
fun box string()
: String iso^
```

#### Returns

* [String](builtin-String.md) iso^

---

