Description
fmt will try to use format_as for formatting; and nlohmann will use a method named to_json in order to convert to json. By creating these methods we don't need to write more logic (like to_string() when using fmt and to insert the item into a json object)
Attachments
Gerrit Reviews
For Gerrit Dashboard: MB-61546 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
209267,1 | MB-61546: use format_as/to_json for cb::mcbp::Feature | master | kv_engine | Status: NEW | 0 | +1 |
209276,1 | MB-61546: Use format_as/to_json for cb::mcbp::Magic | master | kv_engine | Status: NEW | 0 | +1 |