How to perform string substitution to construct a json string in zsh?

前端 未结 0 540
陌清茗
陌清茗 2020-12-18 20:54

This is my function

function print_doc_json() {
    docId=$1
    echo \'{ ":d": { "S": "$(docId)" }}\'
}

I want

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