In AWS I invoke the call ListQueues on sqs.us-east-2.amazonaws.com (by calling directly to the REST API)
The response is always an XML, and searching in the AWS documentation I couldn't find how to get a JSON.
Any ideas?
Provide the Accept: application/json
header and you'll get a JSON response.
Edit: AWS doesn't have much (any?) documentation on the return types. I made a pip module that documents some of the return types that may be helpful as a reference: https://pypi.org/project/awsxmltojson/
Not possible to get JSON response from SQS available actions. Response will always be XML data structures.
In response to an action request, Amazon SQS returns an XML data structure that contains the results of the request.
Source: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-api-responses.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With