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