ee.String.decodeJSON

מפענח מחרוזת JSON.

שימושהחזרות
String.decodeJSON()אובייקט
ארגומנטסוגפרטים
זה: stringמחרוזתהמחרוזת לפענוח.

דוגמאות

עורך הקוד (JavaScript)

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

הגדרת Python

מידע על Python API ועל שימוש ב-geemap לפיתוח אינטראקטיבי מופיע בדף Python Environment.

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())