Closed tuongbuimtt closed 8 months ago
I've tried, but it doesn't seem be the correct method:
object obj; obj.emplace("ABC", 123); if (obj["abc"].is_null()) cout<< "object has no member named abc" << endl; cout << obj.write() << endl;
Of course, the condition is true, and that will print the string, but after call the is_null(), the obj has a member "abc"
object has no member named abc {"ABC":123,"abc":null}
I've tried, but it doesn't seem be the correct method:
Of course, the condition is true, and that will print the string, but after call the is_null(), the obj has a member "abc"