Curl json request

Hi i’m beginner in bash scripting and i just want your help to make the good curl json request to play random music

I use this request below in my internet browser and everything is good. Random music is played on my kitchen raspberry

http://192.168.1.12:8092/jsonrpc?request={“jsonrpc”:”2.0″,”id”:”kodi cuisine”,”method”:”Player.Open”,”params”:{“item”:{“partymode”:”music”}}}

But if i put this request in curl command line into a bash file nothing happen

A other problem is to put variable in the bash but i’m too bad

! /bin/bash
ipkodi=192.168.1.12
portkodi=8092
idkodi=kodi cuisine
curl “http://192.168.1.12:8092/jsonrpc?request={“jsonrpc”:”2.0″,”id”:”kodi cuisine”,”method”:”Player.Open”,”params”:{“item”:{“partymode”:”music”}}}”

Anyone can help me to modify this bash file ?
Thx for next answers