code: public static List<String> parseAttachmentNames(JsonParser documentJsonParser) throws IOException
      {
          documentJsonParser.nextToken();
  
          JsonToken jsonToken;
          while((jsonToken = documentJsonParser.nextToken()) != JsonToken.END_OBJECT)
          {
              if(CouchDbDocument.ATTACHMENTS_NAME.equals(documentJsonParser.getCurrentName()))
              {
                  return readAttachments(documentJsonParser);
              }
              else if(jsonToken == JsonToken.START_OBJECT)
              {
                  readIgnoreObject(documentJsonParser);
              }
          }
          return null;
      }
docs: Parses a CouchDB document in the form of a JsonParser to get the
  attachments order. It is important that the JsonParser come straight
  from the source document and not from an object, or the order will
  be incorrect.
  @param documentJsonParser a JsonParser which is at the very root of a JSON CouchDB document
  @return the list of attachment names in the order provided in the document
  @throws IOException