ChineSouad / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Using GOSN in HTTP Servlet call #277

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a java class named as Test with 3 attributes all are string
2. using gson convert it to String
3. sending that data to the requester

What is the expected output? What do you see instead?
{"mapperId":"14","mapperName":"REPO Live","deskId":"12"}

"{\"mapperId\":\"14\",\"mapperName\":\"REPO Live\",\"deskId\":\"12\"}"

What version of the product are you using? On what operating system?
gson-1.6.jar
Windows 7 ultimate N

Please provide any additional information below.

Original issue reported on code.google.com by sathee.r...@gmail.com on 13 Jan 2011 at 5:14

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Could you provide an executable test case? I suspect the problem is that you're 
double encoding your JSON.

Original comment by limpbizkit on 14 Jan 2011 at 3:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
yes, you are right.. i didn't noticed that..

Original comment by sathee.r...@gmail.com on 14 Jan 2011 at 12:03

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 15 Jan 2011 at 8:10