expect stringified json
server should send an id