Writing JSON documents.