Usage | Returns |
---|---|
String.decodeJSON() | Object |
Argument | Type | Details |
---|---|---|
this: string | String | The string to decode. |
Examples
Code Editor (JavaScript)
var data = ee.Dictionary(ee.String('{"a": "abc", "b": 1}').decodeJSON()); print(data); print(data.get('a'));
import ee import geemap.core as geemap
Colab (Python)
data = ee.Dictionary(ee.String('{"a": "abc", "b": 1}').decodeJSON()) print(data.getInfo()) print(data.get('a').getInfo())