Native Engine - Json Template

Undraw Website Builder

Native Engine - Json Template

Template

A Json template is a native template:

  • that is a valid Json text document
  • that may contain variables in the form Json in its properties key and/or value.
  • that will respect the tree structure (There is no need to add extra processing logic such as loop)
  • that produces a json data resource.

Howto

Tabulify HowTo - How to create JSON file(s) from Tabular data with a JSON template

Example: catalog of item

The variable name should match the name of a column of the source.

{
  "${group}": {
    "${item_code}": {
      "price": "${price}",
      "description": "${description}"
    }
  }
}

where:

  • group,
  • item_code,
  • price
  • and description

are the column names of the input and:

  • ${group}},
  • ${item_code},
  • ${price}
  • and ${description}

are the respective template variables




Related HowTo
Undraw Website Builder
Tabulify HowTo - How to create JSON file(s) from Tabular data with a JSON template

This howto will show you how to create a JSON file from tabular data with the template operation and a JSON template

Task Runner