In Firebase Remote Config I have a valid json field named test:
{
"title": "Hello, World!"
}
In the application I call
jsonDecode(config.getString('test')) and it does not work because config.getString('test') spits out:
{title=Hello, World!}
I tried all possible methods on the config:
jsonDecode(config.getAll()['test'].asString());
and
jsonDecode(config.getValue('test').asString())
The app crashes since that is not valid JSON.
jsonDecodethrows an exception becausegetStringreturns that strange Kotlin-like format - Denis Barzanov