Based on input text i am populating selectone menu ,via ajax.
I am using Jquery GetJSON method,leave that. In the server side,In a managed bean function i am trying to populate an ArrayList,and return it to the jquery function.I need a method to return JSONtext as my response,so that I can populate my drop down via js:ie(ajax)
My question is: How to write code in my managed bean to return that as a JSON response. (with option name and value embedded in the response).