Foreach json with indexes and values

  • Hello everyone. there is a way to put in a foreach, a json object and retrieve various indices and their values?
    example, if I have a json file:
    I would like a foreach, show me
    a = 1
    b = 5
    c = 9
    d = 2

    ps: Googling I saw how to do a foreach and show only the values, without indexes

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.