【发布时间】:2021-09-25 14:25:56
【问题描述】:
如何使用 JQ 将带有特殊字符的多行变量转换为 JSON 字符串?
$ echo $FPR_LOW
4 issues of 4 matched search query.
Issue counts by category:
J2EE Bad Practices: Leftover Debug Code => 1 Issues
ApiApplication.java:23 (Structural)
Poor Error Handling: Overly Broad Throws => 3 Issues
controller/BanksController.java:27 (Structural)
controller/BanksController.java:40 (Structural)
controller/BanksController.java:51 (Structural)
上述字符串变量应该是单个 JSON 字符串。
【问题讨论】: