remove json, fix error with root documents