Prune the attachment from the Json and XML views