JSON and CBOR codecs for MnaFileRef, including base64 framing of embedded payloads and preservation of unknown keys in extras.
More...

Go to the source code of this file.
JSON and CBOR codecs for MnaFileRef, including base64 framing of embedded payloads and preservation of unknown keys in extras.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
The implementation is symmetric: every field declared in the struct round-trips losslessly through both the JSON and CBOR paths, embedded bytes are encoded as base64 in JSON (for human-editability) and as a native byte string in CBOR (for compactness), and any key not recognised by the current build is shovelled into extras on read and re-emitted verbatim on write to keep forward compatibility intact.
Definition in file mna_file_ref.cpp.