+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "JSONFormatter"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++

## JSONFormatter class

<b>Signature</b>

```typescript
export declare class JSONFormatter extends PureComponent<Props> 
```
<b>Import</b>

```typescript
import { JSONFormatter } from '@grafana/ui';
```
<b>Properties</b>

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [defaultProps](#defaultprops-property) | <code>static</code> | <code>{</code><br/><code>        open: number;</code><br/><code>        config: {</code><br/><code>            animateOpen: boolean;</code><br/><code>        };</code><br/><code>    }</code> |  |
|  [renderJson](#renderjson-property) |  | <code>() =&gt; void</code> |  |

<b>Methods</b>

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [componentDidMount()](#componentdidmount-method) |  |  |
|  [componentDidUpdate()](#componentdidupdate-method) |  |  |
|  [render()](#render-method) |  |  |

### defaultProps property

<b>Signature</b>

```typescript
static defaultProps: {
        open: number;
        config: {
            animateOpen: boolean;
        };
    };
```

### renderJson property

<b>Signature</b>

```typescript
renderJson: () => void;
```

### componentDidMount method

<b>Signature</b>

```typescript
componentDidMount(): void;
```
<b>Returns:</b>

`void`

### componentDidUpdate method

<b>Signature</b>

```typescript
componentDidUpdate(): void;
```
<b>Returns:</b>

`void`

### render method

<b>Signature</b>

```typescript
render(): JSX.Element;
```
<b>Returns:</b>

`JSX.Element`

