Quick switch to json representation of any view variables.
Just add ?json
to the url to get the json data behind a view to request it through ajax pagination.
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require controlcode/cakephp-json-switch
Pass GET parameters json to view the json representation of all the variables used in the current view
- Show the json representation
http://www.example.com/?json
- Get the json+ld tag
http://www.example.com/?ldjson