0 votes

I program a little game, where the data is taken from json-files.
I can load, edit and save a json in the program like a in-built json-editor (scene with buttons and a textedit to view and edit the json).
The JSON-Files are big and i must use paragraphs to have an overview. In Wordpad/Notepad++ this is easy, but when after i save the json with the in-built-editor, the json is 1 line of code. I want to make paragraphs and when i save it, it should be there when i load.
How can i do that?

Godot version 3.2.3
in Engine by (17 points)

1 Answer

0 votes

It's not possible. JSON is meant to be single line values. If you want line breaks, you'll need to find a software that will automatically create them from the new line marker.

by (18 points)
edited by
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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.