Reading doc type field

Hi, thanks for the link.
Unfortunately Jira description is a bit more complicated and i could not work out how to parse its JSON and .filter doesn’t seem to be working. I managed to extract the json below and I also shared the document
I need to collect all “text” values

  • “type” : doc,
  • “content” : -{
    • “type” : arr,
    • “value” : -[
      • -{
        • “type” : obj,
        • “value” : -{
          • “type” : paragraph,
          • “content” : -{
            • “type” : arr,
            • “value” : -[
              • -{
                • “type” : obj,
                • “value” : -{
                  • “text” : We need to choose a page builder for our wordpress website,
                  • “type” : text}},
              • -{
                • “type” : obj,
                • “value” : -{
                  • “type” : hardBreak}},
              • -{
                • “type” : obj,
                • “value” : -{
                  • “text” : Requirements:,
                  • “type” : text}}]}}},
      • -{
        • “type” : obj,
        • “value” : -{
          • “type” : orderedList,
          • “content” : -{
            • “type” : arr,
            • “value” : -[
              • -{
                • “type” : obj,
                • “value” : -{
                  • “type” : listItem,
                  • “content” : -{
                    • “type” : arr,
                    • “value” : -[
                      • -{
                        • “type” : obj,
                        • “value” : -{
                          • “type” : paragraph,
                          • “content” : -{
                            • “type” : arr,
                            • “value” : -[
                              • -{
                                • “type” : obj,
                                • “value” : -{
                                  • “text” : Lightweight - top priority,
                                  • “type” : text}}]}}}]}}},
1 Like