Support for parsing YAML #4151
Replies: 2 comments
-
I don't think this is something that needs to be in the core, nor something the core needs. So, an addon? It can be an addon. Somebody already did the addon: https://github.com/Beliaar/godot-yaml-asset Granted that it would need to be reworded for Godot 4. Does that work for you? |
Beta Was this translation helpful? Give feedback.
-
There's a proposal tracking this: #941 However, as noted by @theraot, this is unlikely to be added in core. The built-in ConfigFile class already does a good job of reading and writing human-readable (and human-writable) configuration files. Only use JSON when you need its interoperability 🙂 |
Beta Was this translation helpful? Give feedback.
-
https://www.geeksforgeeks.org/what-is-the-difference-between-yaml-and-json/#:~:text=YAML%3A%20It%20is%20a%20light,JSON%20with%20a%20YAML%20parser.
YAML: It is a light-weight, human-readable data-representation language. It is primarily designed to make the format easy to read while including complex features. Since YAML is a superset of JSON, it can parse JSON with a YAML parser.The extensions in YAML are .yaml or .yml. YAML specifications allow user-defined data types as well as explicit data typing.
Beta Was this translation helpful? Give feedback.
All reactions