Type: lib.json.JSONTemplate

Namespace: lib.json

Description

Template JSON strings with variable substitution. json, template, substitute, variables

Example:
template: '{"name": "$user", "age": $age}'
values: {"user": "John", "age": 30}
result: '{"name": "John", "age": 30}'

Use cases:
- Create dynamic JSON payloads
- Generate JSON with variable data
- Build API request templates

Properties

Property Type Description Default
template str JSON template string with $variable placeholders ``
values Dict[str, any] Dictionary of values to substitute into the template {}

Outputs

Output Type Description
output Dict[Any, Any]  

Metadata

Browse other nodes in the lib.json namespace.