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

SQF Script always appends a , to the end of the JSON array output #3

Open
M-Davies opened this issue Sep 7, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@M-Davies
Copy link
Owner

M-Davies commented Sep 7, 2021

Describe the bug
The SQF to JSON extraction script always appends a comma (,) to the end of the array, making the array invalid and requiring manual intervention.

Expected behavior
There is no comma on the last element of the JSON array

Additional context
This is the line that formats the joined classes string into a string representation of an array. Perhaps it could be removed here?

_JSON = "[" + endl + "  " + _joinedClasses + endl + "]" + endl;
@M-Davies M-Davies added the bug Something isn't working label Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant