I am using the cpprestsdk to send a serialized json object to a custom API using the following code and getting a seg fault (I believe) somewhere in the .wait():