Closed Cdreamfly closed 1 year ago
What is your goal with
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(Data)
? As per https://json.nlohmann.me/api/macros/nlohmann_define_type_intrusive/, there must be a member given.
Can you give an example how the JSON you want to generate should look like?
Do you need further assistance with this issue?
Description
Reproduction steps
Expected vs. actual results
I want the data field to be empty serialized and deserialized to each other
Minimal code example
No response
Error messages
Compiler and operating system
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
Library version
JSON for Modern C++ version 3.11.2
Validation
develop
branch is used.