Closed GoogleCodeExporter closed 8 years ago
i fixed this single element json array issue few days ago. let me check if i
missed any class.
Original comment by zhangyon...@gmail.com
on 6 Sep 2010 at 2:10
LV,
Could you please double check if you have the latest code? I did a test but
could not reproduce this issue. Below is some test output from my unit test. It
shows that the single invitation is in array format.
Thanks,
Cheng
====================get my invitations
[DEBUG] header - >> "GET /prototype-socialrays-jersey/group/my-invitations
HTTP/1.1[\r][\n]"
[DEBUG] header - >> "Accept: application/json[\r][\n]"
[DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
[DEBUG] header - >> "Host: localhost:8517[\r][\n]"
[DEBUG] header - >> "Cookie: $Version=0; JSESSIONID=12we9x0z6vee;
$Path=/prototype-socialrays-jersey[\r][\n]"
[DEBUG] header - >> "[\r][\n]"
[DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] header - << "Content-Type: application/json[\r][\n]"
[DEBUG] header - << "Transfer-Encoding: chunked[\r][\n]"
[DEBUG] header - << "Server: Jetty(6.1.22)[\r][\n]"
[DEBUG] header - << "[\r][\n]"
[DEBUG] content - << "5"
[DEBUG] content - << "4"
[DEBUG] content - << "9"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"
[DEBUG] content - <<
"{"list":[{"createTime":"2010-09-06T07:07:55.480-07:00","id":"1","invitee":{"ban
ned":"no","code":"94040","email":"1283782075340210000","guid":"2","language":"en
","lastAction":"0","lastLogin":"0","loginTime":"2010-09-06T07:07:55.346-07:00","
name":"1283782075340210000","password":"deb641ce536ee63a0bc4e9a8799a6e82","passw
ordValid":"true","prevLastAction":"0","prevLastLogin":"0","salt":"2b62a2e4","use
rValid":"true","username":"1283782075340210000"},"inviter":{"banned":"no","code"
:"94040","email":"1283782075368342000","guid":"4","language":"en","lastAction":"
0","lastLogin":"0","loginTime":"2010-09-06T07:07:55.381-07:00","name":"128378207
5368342000","password":"df7b5126fb2e458e5627f5fbe8b99754","passwordValid":"true"
,"prevLastAction":"0","prevLastLogin":"0","salt":"609f237c","userValid":"true","
username":"1283782075368342000"},"joinGroup":{"closed":"false","groupType":"PRIV
ATE","guid":"2","name":"1283782075402826000","owner":{"banned":"no","code":"9404
0","email":"1283782075368342000","guid":"4","language":"en","lastAction":"0","la
stLogin":"0","loginTime":"2010-09-06T07:07:55.381-07:00","name":"128378207536834
2000","password":"df7b5126fb2e458e5627f5fbe8b99754","passwordValid":"true","prev
LastAction":"0","prevLastLogin":"0","salt":"609f237c","userValid":"true","userna
me":"1283782075368342000"},"siteId":"0","size":"0"},"status":"ACCEPTED"}]}"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "0"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "[\r]"
[DEBUG] content - << "[\n]"
[DEBUG] header - << "[\r][\n]"
Original comment by zhangyon...@gmail.com
on 6 Sep 2010 at 2:20
Original issue reported on code.google.com by
xianhao.lv@gmail.com
on 6 Sep 2010 at 7:02