Skip to content

How to parse multiple same Keys of JSON and save them? #612

Description

@roo7cause

Hey guys,

This is NOT AN ISSUE, but Niels told me to put my question here anyway.

I have several Objects in my JSON, something like this:

 {
  Id= 1
  Name = David
},
{
  Id = 2
  Name = Katja
},
{
  Id = 3
  Name = Luka
},

..

As you can see, I have several identifiers (Id, Name) which are the same in my JSON. How can I do this in C++ with this Lib, so that I can parse it only once and store it somewhere for future use?

E.g. I want to populate a List of Users on my GUI. And then also track which User was clicked and call get that Id from JSON (there are more data in JSON than Id and Name).

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions