Update libraries/joomla/document/json/json.php

Allow the document to be cached if required.
Merge pull request #1840 from chrisdavenport/patch-1

Update libraries/joomla/document/json/json.php
Merge commit '5fbac7b17824b735502355b576bb6ee7524cc9bd' into HEAD