Wasn't obvious to me how to map this in Java JSON libs, but the way that CouchDB stores references to a document's attachments corresponds to a Map:
"_attachments":{
"ALPHA.png":{
"stub":true,
"content_type":"CONTENT/TYPE",
"length":2351959,
"revpos":1
},
"CHARLIE.png":{
"stub":true,
"content_type":"CONTENT/TYPE",
"length":6376790,
"revpos":1
},
"BRAVO.png":{
"stub":true,
"content_type":"CONTENT/TYPE",
"length":2361940,
"revpos":1
}
}
E.g.:
Map attachments;