Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 454 Bytes

jsonmunge.md

File metadata and controls

33 lines (21 loc) · 454 Bytes

Using jsonmunge

If person.json contained

   {"name": "Doe, Jane", "email":"[email protected]", "age": 42}

and the template, name.tmpl, contained

   {{- .name -}}

Getting just the name could be done with

    cat person.json | jsonmunge name.tmpl

This would yield

    "Doe, Jane"

example files