Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Pomoc přepytać

Hladajće so wobšudstwa pomocy. Njenamołwimy was ženje, telefonowe čisło zawołać, SMS pósłać abo wosobinske informacije přeradźić. Prošu zdźělće podhladnu aktiwitu z pomocu nastajenja „Znjewužiwanje zdźělić“.

Dalše informacije

Set Content-Type: application/json for my webservice being hit in the browser

  • 1 wotmołwa
  • 1 ma tutón problem
  • 1 napohlad
  • Poslednja wotmołwa wot cor-el

more options

Hi,

My webservice returns me a response in json format.

But when I directly invoke the REST ful webservice through a url in my mozilla I receive just a xml output and not the JSON.

Can anyone help me in this? i.e. how to set the Content-Type: application/json?

Thanks Vivek

Hi, My webservice returns me a response in json format. But when I directly invoke the REST ful webservice through a url in my mozilla I receive just a xml output and not the JSON. Can anyone help me in this? i.e. how to set the Content-Type: application/json? Thanks Vivek

Wšě wotmołwy (1)

more options

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.