I need bash function 
function create_config_file() {
 local device_id="$1"

 echo "[STATUS:Creating config file]"
 // Here I need logic
 echo "[STATUS:CONFIG FILE CREATED]"
}
In logic i need to create json file config.json with such content:
{
  "SSID":"YOUR_WIFI_SSID", << Here I need to place my wifi SSID of my machine(LINUX)
  "PSK":"YOUR_PASSWORD", << Here I need to place my wifi password of currently connected wifi
  "HOSTNAME":"YOUR_READER_HOSTNAME", << Left as is
  "SERVER":"192.168.0.123:123", << Got from argument
  "DEVICE_ID":"YOUR DEVICE_ID" << Got from argument
}