ANT%20Interview%20Questions%20and%20Answers
Question: How to receive JSON Data at the Server Side?Answer: • 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:
- Who is the Father of JSON ?
- What is the file extension of JSON?
- What is JSON?
- Why use JSON over XML?
- Explain JSON with php.