def render_json(content, request):
    return Response(json.dumps(generic.dump_json(request, content,
                                                 lookup=request.lookup)),
                    content_type='application/json')
Take dict/list/string/number content and return json response.
dataset/ETHPy150Open morepath/morepath/morepath/view.py/render_json