Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forcing curley brackets ( {} ) instead of brackets ( [] ) #54

Open
windnedr opened this issue Nov 3, 2024 · 2 comments
Open

Forcing curley brackets ( {} ) instead of brackets ( [] ) #54

windnedr opened this issue Nov 3, 2024 · 2 comments

Comments

@windnedr
Copy link

windnedr commented Nov 3, 2024

I have come across an issue where I mean {} but it keeps getting encoded as []

Is there a feature to force curleys?

@sonoro1234
Copy link

sonoro1234 commented Dec 27, 2024

Hi @rxi

In https://github.com/cimgui/cimgui/blob/docking_inter/generator/json.lua
I did modifications to version 0.1.1 for:
1- prettifying (newline, indentation)
2- dictionary sorted by key (for consistent repetition of encoding)
3- That asked above: force curleys in empty tables.

The problems is that I got out of sync with your repo.
Would you like to add all or some of this in a PR?

@sonoro1234
Copy link

I have come across an issue where I mean {} but it keeps getting encoded as []

Is there a feature to force curleys?

I guess this happens with an empty table?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants