-1

I had an application that is running with servelets. I want to test that application using REST services or POSTMAN.

So, I want to know, whether it could be possible to convert a servelet application's request and response into JSON for testing it with Postman or REST services.

If this possible, how do I do this conversion?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
E V N Raja
  • 110
  • 1
  • 5
  • 17

1 Answers1

1

Some context would be helpful. What does the request to your application look like?

You don't need to convert an application's request / response into JSON to use postman. Postman is pretty flexible, you can send a variety of request content types to your application.

As far as whether or not this is possible, absolutely. If you want to convert your request & response objects to JSON, consider using something like Jackson. You can use the ObjectMapper of this tool to go from JSON to POJO & vice versa