def extract_children(tag, children)
      children.map do |child|
        if child["children"]
          extract_children("#{tag},#{child['name']}", child["children"])
        else
          [child["url"], child["name"], "", tag]
        end
      end
    end
def extract_children(tag, children)
      children.map do |child|
        if child["children"]
          extract_children("#{tag},#{child['name']}", child["children"])
        else
          [child["url"], child["name"], "", tag]
        end
      end
    end
Extracts the children from the JSON file