Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要以以下格式显示 json 数据。如何获得正确的格式。谢谢
{"IsValid":true,"Values":{"editions":[]},"error":null}
$ jq . <<< '{"IsValid":true,"Values":{"editions":[]},"error":null}' { "error": null, "Values": { "editions": [] }, "IsValid": true }