boostorg / system

Boost.org system module
http://boost.org/libs/system
36 stars 85 forks source link

Add support for boost::json::value_from, boost::json::value_to #95

Open pdimov opened 1 year ago

pdimov commented 1 year ago
pdimov commented 1 year ago

The JSON-RPC specification uses { "result": t } for the value case, instead of "value"; it also uses { "code": 5 } for the error code, instead of "value".

pdimov commented 1 year ago

The category in the std::error_code case should probably also be just "system" or "generic", so as to match the eventual value_from for std::error_code provided by Boost.JSON.