Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Gleb | |
Old Version | Published before Godot 3 was released. |
How can I apply to several dictionaries in .json file from GDScript?
For example, I have .json file with questions and answers:
{
"someQuestion \nsomeAnswer" : 1,
"anotherQuestion \nanotherAnswer" : 0
}
No problem, I can apply to this dictionary by
questions_file.open("file.json", File.READ) questions.parse_json(questions_file.get_as_text())
But what if I want to apply to another dictionary in .json?
{
{
"question" : 1
}
{
"anotherDictionary" : 1
}
}
(I’m not sure it’s the right way to write a several dictionaries in .json)
So, the question is how to apply to dictionary with “anotherDictionary” : 1in GDScript?
Thank you
What do you mean by apply to?
avencherus | 2017-11-08 08:57