Form the json before the response and just use the stdlib renderer