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;
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?