The documentation section that describes how to convert from a JSON string to a Document is out of date and no longer even compiles on version 3.x. When I dropped back to version 2.x the conversion compiles as per the documentation.