# ee.String.decodeJSON

Decodes a JSON string.

<br />

| Usage | Returns |
|---|---|
| `String.decodeJSON()` | Object |

| Argument | Type | Details |
|---|---|---|
| this: `string` | String | The string to decode. |

## Examples

### Code Editor (JavaScript)

```javascript
var data = ee.Dictionary(ee.String('{"a": "abc", "b": 1}').decodeJSON());
print(data);
print(data.get('a'));
```
Python setup

See the [Python Environment](https://developers.google.com/earth-engine/guides/python_install) page for information on the Python API and using
`geemap` for interactive development.

```python
import ee
import geemap.core as geemap
```

### Colab (Python)

```python
data = ee.Dictionary(ee.String('{"a": "abc", "b": 1}').decodeJSON())
display(data)
display(data.get('a'))
```