Make json an attachment.