Skip to content

03.3 Parsers

Amit Gupta edited this page Mar 8, 2018 · 2 revisions

It is difficult to write stub/response file with special characters. Hence Stubmatic provides the support of parsers. You specify in the request-response mapping the type of parser you need. So, e.g., you want to mock an API which sends data in nimn format. But since it'll contain special characters, you can prepare the response file in JSON and specify the parser jsonToNimn. Please remember to set the content type to "application/nimn". Parser will not update the content type.

Clone this wiki locally