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

JSON output support #22

Open
ghost opened this issue Sep 9, 2016 · 0 comments
Open

JSON output support #22

ghost opened this issue Sep 9, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 9, 2016

JSON does not allow trailing commas after the last element of a list. Thus the following is legal:

{
  "a": "1", 
  "b": "2"
}

While this is not:

{
  "a": "1", 
  "b": "2",
}

Does lustache support this somehow? Would it be possible to write a function that adds a comma to it's output for all elements of a list but the last?

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

0 participants