Render query json in template
updated documentation