Closed GoogleCodeExporter closed 9 years ago
Example Json object that I am parsing is:
{"results":[
{"seq":14,"id":"c5545c7896b619091628ad1f1c0048c1","changes":[{"rev":"14-7d63aecc
8816bfc0e4064825ffeb8cb9"}]},
{"seq":16,"id":"c5545c7896b619091628ad1f1c004f38","changes":[{"rev":"2-7051cbe5c
8faecd085a3fa619e6e6337"}]}
],
"last_seq":16}
Original comment by jiten.g...@gmail.com
on 26 Aug 2012 at 5:37
Nevermind I figured out it seems the call expects the json to be of the form
{"seq":14,"id":"c5545c7896b619091628ad1f1c0048c1","changes":[{"rev":"14-7d63aecc
8816bfc0e4064825ffeb8cb9"}]}
When I pass this to the call
ChangeNotification changeNotification = JSONParser.
defaultJSONParser().parse(ChangeNotification.class, json);
it worked.
Original comment by jiten.g...@gmail.com
on 26 Aug 2012 at 6:01
Yes ... Each of the items in the results array is a ChangeNotification
document. I'm glad you figured out the problem but I thought I'd also warn you
that there are changes to some of the document formats in CouchDB 1.1 and 1.2
that aren't included in jcouchdb yet. Some are incorporated in the 1.1.0-1
branch but some are outstanding.
Original comment by smoye...@gmail.com
on 1 Dec 2012 at 12:53
Original issue reported on code.google.com by
jiten.g...@gmail.com
on 26 Aug 2012 at 5:21