elli_json middleware.
Copyright (c) 2016, Sukumar Yethadka; 2017-2018, elli-lib team.
Authors: Sukumar Yethadka.
Encode the response body as JSON.
postprocess/3 |
postprocess(Req, Res1, Config) -> Res2
Req = elli:req()
Res1 = elli_handler:result()
Config = elli_handler:callback_args()
Res2 = elli_handler:result()