Reputation: 3
i have the problem to get the output in JSON format, it works with the default XML output. Command:
curl --silent -k -u {user}:{password} \
'https://{server}:8089/services/search/jobs/{search_id}/results/'
\ -d output_mode=json
It works without -d output_mode=json
, but I get the XML output.
Any ideas? Sorry for the dumbass question!
Upvotes: 0
Views: 711
Reputation: 1059
You can specify output_mode
in the query string, ie:
curl --silent -k -u {user}:{password} \
'https://{server}:8089/services/search/jobs/{search_id}/results/?output_mode=json'
Upvotes: 1