Post API changes for supporting json format and tunnel