Split up single JSON object into multiple objects : I have a single JSON object that I would like to split up into multiple JSON objects. I'm not sure how to go about splitting up the array with either `filter`, `map` or `reduce`. I couldn't figure out a pattern to break up the single object if there's an absent key, i.e. meal1, meal2, etc. I appreciate any help or pointers in the right direction!

Before

    {
      "fullName1" : "John Doe",
      "attendance1" : 1,
      "meal1" : "salmon",
      "fullName2" : "Jane Doe",
      "attendance2" : 0
    }

Desired result

    {
      "fullName" : "John Doe",
      "attendance" : 1,
      "meal" : "salmon"
    },
    {
      "fullName" : "Jane Doe"
      "attendance" : 0
    }