In JavaScript I get JSON data. The service sends me back JSON data in a file (HTTP Header - file
), a second service sends me back data as text in browser (HTTP Header type - text/html
).
I need to parse this data in JavaScript (ExtJS).
It is different to Javascript, getting JSON as text/html
and as file
?
I know that with text/html
- all works fine, but will it work with other HTTP Header type (that retrieves file that contains JSON)?
Thanks