Renders document to Json.
Adds scaffold for annotation