经常有在linux下日志里或者文本里查看json信息
一般都是一坨,没有格式化看起来很费劲,使用jq工具就很方便
centos:yum install jq
ubuntu:apt-get install jq
例如下面的案例:
指定获取key
jq ".datetime.date"