Skip to content

JSON output support #22

@ghost

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions