Using jq and bash to convert plaintext block into JSON

后端 未结 0 1553
北海茫月
北海茫月 2021-01-22 00:43

I have a plaintext file in format like this:

foo: bar
color: blue
names: joe, john, mary, bob, sue

I need to output the contents of this file as

相关标签:
回答
  • 消灭零回复
提交回复
热议问题