I have this command
curl http://localhost:6800/schedule.json | python -c "import json; print (' '.join(['-d '+key+'='+word for key,word in json.load(open('cron_parameters_testing.json')).items() ] ))"
actually the python command reads parameters from JSON file like this
{ 'project' : 'default' }
and returns the output as -d project=default
I have separately tested python -c "import json; print (' '.join(['-d '+key+'='+word for key,word in json.load(open('cron_parameters_testing.json')).items() ] )) command it works perfectly but it does work with the cURL
my final command that I want to run is
curl http://localhost:6800/schedule.json -d project=default
of course I want -d project=default to be generated from command I mentioned