我在value库中使用nlohmann/json函数遇到了一些困难。我有一个空的json对象,如果初始化了嵌套的键,我希望初始化它或增加它。我一直试图使用value函数来解决这个问题,但是我经常遇到这样的错误:
C++ exception with description "[json.exception.type_error.306] cannotnl
我试图构建一个简单的catch结构,但我得到了下面与nlohmannjson库相关的错误。error: ‘exception’ in ‘using json = class nlohmann::basic_json<> {aka class nlohmann::basic_json<>}’does not name a type
catch (nlohmann::json<