[android-components](../../index.md) / [mozilla.components.service.fretboard](../index.md) / [JSONExperimentParser](./index.md)

# JSONExperimentParser

`class JSONExperimentParser` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/fretboard/src/main/java/mozilla/components/service/fretboard/JSONExperimentParser.kt#L19)

Default JSON parsing implementation

### Constructors

| Name | Summary |
|---|---|
| [&lt;init&gt;](-init-.md) | `JSONExperimentParser()`<br>Default JSON parsing implementation |

### Functions

| Name | Summary |
|---|---|
| [fromJson](from-json.md) | `fun fromJson(jsonObject: <ERROR CLASS>): `[`Experiment`](../-experiment/index.md)<br>Creates an experiment from its json representation |
| [toJson](to-json.md) | `fun toJson(experiment: `[`Experiment`](../-experiment/index.md)`): <ERROR CLASS>`<br>Converts the specified experiment to json |
