You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just faced similar behaviour with method is_null(): if no value in object j under "subprojects" key invoking j["subprojects"].is_null() creates such value (see screen):
What you try to do is to find out whether an object stores a value for a key. For that, you could try j.count("subprojects") == 0.
However, j["subprojects"] has a different semantics: If a key subprojects is stored in j, it returns a reference to that object. But if it does not, it creates a null value for that key. While this may make little sense when combined with is_null(), it helps to create objects easily, for instance j["foo]["bar"] = 1.
Hello.
After invoking such function on json object data with key SUBPR_DESCR appearing with value "none".
[offtop] Lol, horrible char * to string casting at the bottom of image 🐹 [/offtop]
The text was updated successfully, but these errors were encountered: