But it was obviously cumbersome, so we used the jsonpath we installed earlier

Use jsonpath.jsonpath(data,"$..name")

data is our content, $means under the root node,

This is understandable. Looking closely at the preview section, you can see that labels are actually hierarchical, and that $..Name represents the part of any hierarchical name key value under the root node