example http client/server sending json back and forth