I'm trying to use sed to insert a tab followed by a string with quotes (json) followed by a newline on mac on the second line. So far I've got
sed -i '.json' "2i\\
\"$(printf '\t') \"1.0.1\": \"1.0.1.zip\",\\
    " dummy.txt
and that outputs
"        "1.0.1": "1.0.1.zip",
and then when I try to remove the \" 
sed -i '.json' "2i\\
$(printf '\t') \"1.0.1\": \"1.0.1.zip\",\\
    " dummy.txt
No tab is there. am i missing something here to get the tab?
Edit: I tried this
version=5.5.1
sed -i '' "2i\\
echo -e [\\t] \"1.0.1\": \"1.0.1.zip\",\\
    " dummy.txt
and the output of my dummy.txt file is
echo -e [t] "1.0.1": "1.0.1.zip",
No tab is present.

sedcommand, I can't see you "insert a tab" in it. Is it that you don't know how to include it into the script?$sign, needed for expansion, is escaped thus useless.jq.