HTTP/JSON communication between clients and server