postman-code-generators
postman-code-generators copied to clipboard
(Issue) When i use request.body it generates an error with JSON.parse()
Describe the bug When i use body.request it generates an error with JSON.parse().
To Reproduce let obj = { mode:'raw', raw: JSON.stringify(payload) } request.body = JSON.stringify(obj)
Screenshots
FIX The problem is fixed Changing the method toJSON () with JSON.parse ()
@mvargaslandolfi1993 Can you please give a screenshot of the Postman Request for which you're trying to generate code, as well the language/framework in which the problem is occuring?
Im using JS and Jquery, and I'm trying to generate code in cURL, PHP (HTTP_Request2), Python(http.client), GO(Native) and Java(Unirest)