I am building a online examination system using struts 1. Now to fetch the next question I am making a ajax call to action class and action class should return an object i.e. QuestionDTO. The problem I am facing is I am not able to read/parse that object in java script.
Can anybody tell me what is the best approach to achieve this? Means do I need to use Json like thing? or return a String and split it in java script?