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

Allow trailing commas , before the closing bracket } #47

Closed
ecerulm opened this issue Dec 18, 2018 · 1 comment · Fixed by #72
Closed

Allow trailing commas , before the closing bracket } #47

ecerulm opened this issue Dec 18, 2018 · 1 comment · Fixed by #72
Labels
enhancement New feature or request

Comments

@ecerulm
Copy link
Contributor

ecerulm commented Dec 18, 2018

JSON does not allow trailing commas like in

{ 
  "@id": 1,
}

The comma after 1 will make the parser believe a new key is expected. This is usually an annoyance and JSLT could support trailing commas to make it easier to write JSLT templates, without worrying about the commas

@ecerulm
Copy link
Contributor Author

ecerulm commented Apr 26, 2019

@larsga please review the pr #72 which implements this enhacement

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

Successfully merging a pull request may close this issue.

2 participants