0 votes

---The question was solved---

In GDNative, I can convert a dictionary to a JSON, but how do I convert a JSON string to a dictionary?

The solution

Dictionary destination = JSON::get_singleton()->parse(file->get_as_text())->get_result();

The C++ compiler will automatically convert it into dictionary.

asked Jun 6 in Engine by Nix Jian (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.