From a486fb99a9cdc381ac39c0ae9f733432aa0af837 Mon Sep 17 00:00:00 2001 From: Sean Parsons Date: Sun, 25 Dec 2016 01:06:40 -0500 Subject: [PATCH] Updated json function docstrings to be more consistent. --- sanic/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/response.py b/sanic/response.py index 5031b1c8..1bae348d 100644 --- a/sanic/response.py +++ b/sanic/response.py @@ -140,7 +140,7 @@ class HTTPResponse: def json(body, status=200, headers=None): """ - Returns serialized python object to json format. + Returns body in json format. :param body: Response data to be serialized. :param status: Response code. :param headers: Custom Headers.