Skip to content

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

@M-Davies

Description

@M-Davies

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions