-2

Given the json, car:

{
  "color" : "blue",
  "interior" :
  {
    "seat" : 
    {
      "center" :
      {
        "color" : "brown"
      },
      "outside" :
      {
        "color" : "black"
      }
    }
  }
}

Is there any way to do a full recursive extraction to create one list of all instances of all the values associated with all the 'color' key, like so: car.DeserializeAgnostic("color") , with result: ["blue", "brown", "black"]?

slothish1
  • 107
  • 1
  • 10

0 Answers0