Adds more functionality to documents section
Adds rendering of JSON responses