Using curl POST with variables defined in bash script functions Using curl POST with variables defined in bash script functions json json