Is that possible to convert object to JSON or XML

We are building an application in JSF. In that we are passing the request using object and converting them in xml using X stream to communicate with server side and entering the values in DB. For response we are again converting them to Object using X stream. My problem is Ajax functionality is not taking place in this. I veryi new to JSf technology. As far as I know Ajax can be handle XMl and JSON. Since my request and response is object I am unable implement Ajax feature. If I convert object to JSON or XML how can get those values in JSF.Is there any way I can solve this issue. Please guide how to resolve this Issue.
 
Back
Top