Am 18.09.2017 um 15:30 schrieb Suliman:
I am always confusing which function I should to use when I am working with JSON. I have JSON-like string.
"registered_country": { "iso_code": "RU", "names": { "fr": "Russie", "de": "Russland", "en": "Russia" }, "geoname_id": 2017370 }
I need to convert it ti JSON Object. How can I do it? Which of them I should to use http://vibed.org/api/vibe.data.json/serializeToJson ?
parseJsonString(text)
would be the most direct way to get a Json
out
of this. deserializeJson!Json(text)
would be more or less equivalent,
but serialization usually only makes sense when converting to/from
statically typed objects.