Is it possible to parse HTML response as JSON in postman?

Can we convert the response body from HTML to JSON format by scripting( like we do in case of XML to json conversion)

If yes, please share us the code

Hi @prabhumohan09,

We can do only if all html tags are closed properly and are having structure like an xml or rather xhtml.

You may use xm2json built in library in postman to accomplish this.

1 Like