server sends json to client