Switch client/sever to json