http/response: add #json method