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

Allow the document to be cached if required.