Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

ANT Interview Questions and Answers

Ques. How to Generate or Send JSON Data at the Server Side?
Ans. Create JSON Java object
Add name and value pairs using put method
Convert it to String type using toString method and send it to the client with content-type as \"text/xml\" or \"text/plain\"
myString = new JSONObject().put(\"JSON\", \"Hello, World!\").toString();
// myString is {\"JSON\": \"Hello, World\"}
Is it helpful? Yes No

Most helpful rated by users:

©2020 WithoutBook