header_utils
Loading...
Searching...
No Matches

Functions

nlohmann::json ghassanpl::formats::cbor::try_load_file (std::filesystem::path const &from, nlohmann::json const &or_json=json::empty_json)
 Tries loading a CBOR file.
 
void ghassanpl::formats::cbor::save_file (std::filesystem::path const &to, nlohmann::json const &j)
 Saves a CBOR file.
 

Detailed Description

Function Documentation

◆ save_file()

void ghassanpl::formats::cbor::save_file ( std::filesystem::path const to,
nlohmann::json const j 
)
inline

Saves a CBOR file.

Definition at line 393 of file json_helpers.h.

◆ try_load_file()

nlohmann::json ghassanpl::formats::cbor::try_load_file ( std::filesystem::path const from,
nlohmann::json const or_json = json::empty_json 
)
inline

Tries loading a CBOR file.

Definition at line 385 of file json_helpers.h.