How to nicely remove empty array in jq

前端 未结 1 1935
[愿得一人]
[愿得一人] 2020-12-29 05:01

I am reading O\'Reilly\'s new \"Data Science at the Command Line\" and running into trouble using jq. I have some JSON (returned from the NYTimes Articles API) I am parsing

相关标签:
1条回答
  • 2020-12-29 05:41

    Use the select filter where length > 0.

    select(length > 0)
    
    0 讨论(0)
提交回复
热议问题