Parse dictionary into document.