Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

ANT Interview Questions and Answers

Ques. How to receive JSON Data at the Server Side?
Ans. Read the JSON data as a String type
Create JSONObject Java object from the string String json = readJSONStringFromRequestBody(request);
//Use the JSON-Java binding library to create a JSON object in Java JSONObject jsonObject = null;
try {
jsonObject = new JSONObject(json);
}
catch(ParseException pe) {
}
Is it helpful? Yes No

Most helpful rated by users:

©2021 WithoutBook