Skip to content Skip to main navigation Skip to footer

Q: How to choose answer format from server (xml/json)?

A:

  • Via HTTP header “Accept” parameter (application/json; application/xml)
  • Via request query “format=json/xml”

If the format is not defined (or the HTTP header “Accept” parameter has one of these values: application/*,*/*,*), server will return json.