Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道如何在 QJsonObject 中创建成员和值。我想要做的是创建一个 Json 函数,调用时将调用分配的函数。
这可能吗?
我认为这是不可能的,函数不是有效的 json 值。
有效的 json 值是:字符串、数字、对象、数组、布尔值或 null。
在 Qt 中,有效的 QJsonValue 为:bool QJsonValue::Bool、QJsonValue::Double、QJsonValue::String、QJsonValue::Array、QJsonValue::Object、QJsonValue::Null
json规范