try
awk '{printf "{\
\tname: %s\
\tid: %d\
\t}\
",$0,NR}' file.txt
where
* `printf` will skip line, add tab and format string.
for `id:` argument, you can either use second field in your sample file, or generate one from line number (that is `NR` (Number of Record) value).