Postman tip and tricks : Add comments to json request body in postman

After some long break , back into community space with something interesting

Here you go , a new collection for Postman lovers . Published a new collection in my postman tricks and tips workspace that shows how to use comments in #rest api request json body in postman

Collection : Use comments in request body

Workspace:
https://lnkd.in/ewxkkRJ

Here we use cdnjs of #json5 library to parse the request body before sending it to server , JSON5.parse(json) removes all comments and gives clean valid json :heart_eyes: you can checkout this library even for parsing config files and can be useful for non postman use cases #testautomationengineer #apitesting #articles #sdet

4 Likes

Very nice showcase of how to bring in an external library @praveendvd :clap: :clap:

2 Likes

@joyce thank you Joyce :partying_face: