My code produces trace records using json!() and serde_json::to_string(). I'd like the values to appear in the string in the order specified in the macro, but they are alphabetized. For example,
json!({"foo": 1, "bar": 2})
results in
{"bar":1, "foo":2}
That's not a problem for this simple example, but it is when "bar" is a big struct. Is there a way I can get the order specified in the macro?