Nodejs utility to get application/json request and response