Interesting. The C++ JSON parser by Niels Lohmann that is a more or less defacto standard seems to parse things wrong, or at least give out wrong value when getting named values from a nlohmann::json instance. Very weird, as it used to work ok. Oh well, time to find something else then.
I've made a fix PR for #nlohmann json