Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (12 sloc) 277 Bytes
metadata:
title: Custom response
example start: 2
documentation: "https://docassemble.org/docs/functions.html#response"
---
imports:
- json
---
mandatory: True
code: |
data = dict(fruit='apple', pieces=2)
response(json.dumps(data), content_type="application/json")