Request -> Raw/Javascript - How does this work?

In the Mac client under raw data format options there is a Javascript option. I’ve tried all sorts of things to make that work and can’t. Documentation doesn’t even mention it.

All my searches come up with things relating to testing or using the JSON format.

Does anyone know how this works?

Hey @yoodlize, welcome to the Postman community!

As far as I know the options there are only for Syntax Highlighting purposes. Is this not working? Or were you expecting it to do something else?

1 Like

Hi @yoodlize, you can go through this article on MIME types and read about why application/javascript header is used: https://www.maxcdn.com/one/tutorial/mime-types/

And, as @arlemi mentioned, it helps you with the syntax highlighting in the raw area and also as soon as you select that option, it sets the Content-Type header as application/javascript (you can see the Header tab and you’ll find that header)

1 Like