nlohmann::json payload = {{"type", "market"},
{"side", "buy"},
{"product_id",market},
{"funds", size}};
std::cout << payload.dump() << std::endl;
out : {"funds":"10","product_id":"BTC-USD","side":"buy","type":"market"}
As you can see json is alphabetically reordered, which I dont want... How do I solve this ? thanks in advance!