tom1234
asked on
c++, dynamic object by json
Is there a way to generate object by json?
like this,
or the best way I can.
like this,
class ClassA{
string fieldA;
string fieldB;
}
auto json = { fieldA : "a", fieldB : "b"};
ClassA classA = convertObject<ClassA>(json);
or the best way I can.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.