helper to fill a map from a json::Object