Need HTTP method GetRequest_Submit to return JSON


I am using GetRequest_Submit method of HTTPRequestHandler. Its returning me response in XML.

I want the method to return response in JSON.

Is there any way i can do that or i can tell the request by adding some header to return the response to me in JSON.

If not, how can i convert that XML response to JSON. I saw one plugin in forge but i don't want to install one seperate forget extension just for this sake.

Thanks in advance.



I think that GetRequest_Submit can't return the response in JSON. But, like you said you can convert XML to JSON. 

To do that you will need to map the XML to a structure, this can be achieved with the XML Records extension(  then map the structure to JSON, using the platform JSON Serialize function.