solution for http json api server