Skip to content

Issue iterating through 'items' #3021

Description

@ZacharyLowell

When trying to compile my code, I am getting the following error:


XXX.cpp:128:44: error: ‘using value_type = class nlohmann::basic_json<>’ {aka ‘class nlohmann::basic_json<>’} has no member named ‘items’
for(auto& el: _pc["XX"]["XXXXX"].items()){


Prior to running this, I ran a sudo apt-get install nlohmann-json-dev. Any solution other than using the json.hpp header?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    solution: proposed fixa fix for the issue has been proposed and waits for confirmationstate: needs more infothe author of the issue needs to provide more details

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions