Skip to content
JSON TEMPLATINGPYTHON · ROBOT FRAMEWORKPAYLO / LIVING TEMPLATE

Your structure.
Variable by nature.

Build JSON payloads with explicit variables. Change the data, preserve its type and reuse your template.

Get started
01 / VARIABLES02 / YOUR TEMPLATEORIGINAL TYPE
customer.name"Ana"
quantity3
activetrue
"name":"{{customer.name}}",
"quantity":"{{quantity}}",
"active":"{{active}}"
string ↳
number ↳
boolean ↳
SCENARIO01Ana
One structure. Changing data.Substituting

customer.name accesses the name field inside customer. A full-value placeholder preserves the value’s type.

Discover how it worksTHE SHAPE REMAINS. THE CONTENT EVOLVES.

Define it once.
Change what matters.

Paylo substitutes values inside valid JSON. You decide which data goes in; the structure does not need to be rewritten for every test scenario.

01

Explicit variables.

Python dictionaries or Robot Framework data. No implicit environment reads.

02

Types stay intact.

A number stays a number. Booleans, lists, objects and null retain their types when they occupy the entire value.

03

Clear errors.

Paylo tells you when a variable is missing. Values are neither executed nor expanded again.

From a template to your tests

from paylo import render_template

payload = render_template(
    {"name": "{{customer.name}}", "quantity": "{{quantity}}", "active": "{{active}}"},
    {"customer": {"name": "Ana"}, "quantity": 3, "active": True},
)
assert payload == {"name": "Ana", "quantity": 3, "active": True}

The result retains the string, number and boolean. No HTTP request is sent.

User guide · Complete examples