Hi Sushmitha,
For your rest service call, are you using an import mapping on your response? or are you trying to pass the json string to the import mapping action? I recommend using the first option.
Heres a link to the documentation on how to do that:
https://docs.mendix.com/howto/integration/consume-a-rest-service