I want to send the Object from Ajax to servlet but Java just support to get the parameter and return "String", so that I cannot send and get an object from ajax to servlet. So any people can help me? Give me an example to send the json to servlet, please.
Asked
Active
Viewed 134 times
-2
-
1What have you try so far? – ItayB May 08 '15 at 02:36
-
I don't know how to send the json to servlet and how to receive the json data on servlet, that why I ask someone here and also research on google to solve my problem but have no result :( – user3040408 May 08 '15 at 02:37
-
possible duplicate of [How to parse JSON in Java](http://stackoverflow.com/questions/2591098/how-to-parse-json-in-java) – user4098326 May 09 '15 at 14:05
-
If you have a bit of code you're stuck on, add it to your question. If you're looking for a tutorial, there are many, try googling it. – Brad Koch May 09 '15 at 14:08
1 Answers
-1
Use JSON.stringify and JSON.parse in JS code itself

David Mathias
- 296
- 3
- 12
-
can you tell me how to using it? or give me a link that have an example or document about it, please :( – user3040408 May 08 '15 at 02:40