add a handler to serveJson