Export JSON var in editor

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jarlowrey
:warning: Old Version Published before Godot 3 was released.

Is this possible? It would be nice to have named sub-variables (similar to how an array appears), instead of every variable being placed next to each other.

Exporting arrays and dictionaries (or even classes) is not possible at the moment (JSON is just a representation of a nested structure of arrays and dictionaries), it’s quite a complex task to achieve.

There have been some requests for this, like this Node Dictionary one Node Type - Dictionary Node · Issue #4043 · godotengine/godot · GitHub (not quite the same but the idea is similar).

In 3.0 it became possible to inspect dictionaries and arrays in the debugger, buit they aren’t editable: Make script debugger display all kinds of objects by mablin7 · Pull Request #8613 · godotengine/godot · GitHub

Zylann | 2017-05-10 12:07

Cool thanks!

jarlowrey | 2017-05-10 14:19