---
title: jsonRepresentation()
framework: metrickit
role: symbol
role_heading: Instance Method
path: metrickit/mxcrashdiagnosticobjectivecexceptionreason/jsonrepresentation()
---

# jsonRepresentation()

Returns the contents of the exception reason in JSON format.

## Declaration

```swift
func jsonRepresentation() -> Data
```

## Return Value

Return Value An NSData object containing the JSON representation of the metrics in the payload.

## See Also

### Generating a report

- [dictionaryRepresentation()](metrickit/mxcrashdiagnosticobjectivecexceptionreason/dictionaryrepresentation().md)
