0

I am using jsoncpp to work on a JSON with duplicate key-pair values. My JSON is something like:

dict = {
    "a" : "1",
    "b" : "2",
    "c" : "3",
    "a" : "4",
    "c" : "5"
}

Even though this JSON looks 'invalid', I want to get a list of values (1,4) when dict["a"] is accessed. How to get this?

Sebastian
  • 8,046
  • 2
  • 34
  • 58
rocx
  • 285
  • 2
  • 5
  • 13

0 Answers0