79560331

Date: 2025-04-07 16:05:21
Score: 2
Natty:
Report link

With this formula :

@.{high_name : high_name, sections : sections[*].{name : name, item: [item,items_sub[*].*[]][]}}

You can get this :

{
  "high_name": "test",
  "sections": [
    {
      "name": "section1",
      "item": [
        "string1"
      ]
    },
    {
      "name": "section2",
      "item": [
        "string2",
        "deeper string1"
      ]
    }
  ]
}

As you can see I retrieved the string2 with the deep string1 instead of string1, so please tell me if you made a mistakes in your question or you really want string1

Reasons:
  • RegEx Blacklisted phrase (2.5): please tell me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: bosskay972