solution for http json server api