Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

REST API does not return JSON

If I try to do an API request I always get a response in XML format - even if specifying the accepted format to be JSON.

Anyone that can explain this?


curl -vv "" -H "Accept: application/json"
* Trying
* Connected to ( port 8060 (#0)
> GET /api/rest/fisheyeVersion HTTP/1.1
> Host:
> User-Agent: curl/7.47.0
> Accept: application/json
< HTTP/1.1 200 OK
< Date: Tue, 20 Jul 2021 13:15:57 GMT
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: SAMEORIGIN
< X-UA-Compatible: IE=Edge
< X-AUSERNAME: anonymous
< Content-Type: text/xml;charset=utf-8
< Vary: Accept-Encoding, User-Agent
< Transfer-Encoding: chunked
< Server: Jetty(9.4.19.v20190610)

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

👁‍🗨 Confluence Team planning dashboard_Atlympics 🌈

Hi Atlassian's, How is your journey with #Atlympics 2021 so far....excited! Me too, same excitement. Here's my typical team planning and vision dashboard which I used to share to my management and ...

37 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you