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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…