can’t update library with JSON using bash script

Not entirely sure what I’m doing wrong. I’m trying to execute a command to run a library scan when I add a new file into a directory.

Code:
$showname=<ShowTitle>

scandata="\"jsonrpc\": \"2.0\", \"method\": \"VideoLibrary.Scan\", \"id\": \"mybash\",\"params\":{\"directory\":\"smb://<IPofSMBServer>/media/tvshows/General/$showname\"}"

scancurlresult=$(curl --data-binary "{$scandata}" -H 'content-type: application/json;' http://user:pass@<kodiIPaddress>:80/jsonrpc)

I know I need some debug logs, but I’m wondering if there is some syntax I’m missing.