Missed to answer this part of your question in the previous post,
You don’t exactly have to do the conversion to string in Linux.
You can use some online formatters to so the same for you like:
Which will give the code within double quotes and you can use that directly in the Postman.
If you want to do in your local you can Check some JSON.stringify type libraries in scripting to convert this to string.
iamnithesh
(Nithesh Rao)
22
If you are using Postman it automatically converts the text to string. Under body tab select raw and json options
1 Like
@iam_nithesh
If I simply paste my script code where the arrow points… it will break the json… first I need remove lines and escape "
iamnithesh
(Nithesh Rao)
24
use this website to escape (& unescape) your java code
1 Like
How I survived without this site until now???
Finally got it working!!!
2 Likes
Hi @leonardo_lsilva . I see that your question has been resolved. Can you please mark the post that best solved your question as the solution?
system
(system)
Closed
28
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.