PHPackages                             controlcode/cakephp-json-switch - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. controlcode/cakephp-json-switch

ActiveCakephp-plugin[Parsing &amp; Serialization](/categories/parsing)

controlcode/cakephp-json-switch
===============================

Quick switch to json representation of any view variables.

v1.0.2(7y ago)06MITPHP

Since Jun 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/landr-controlcode/cakephp-json-switch)[ Packagist](https://packagist.org/packages/controlcode/cakephp-json-switch)[ Docs](https://github.com/landr-controlcode/cakephp-json-switch)[ RSS](/packages/controlcode-cakephp-json-switch/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

ControlCodeJsonSwitch plugin for CakePHP
========================================

[](#controlcodejsonswitch-plugin-for-cakephp)

Quick switch to json representation of any view variables.

Use case
--------

[](#use-case)

Just add `?json` to the url to get the json data behind a view to request it through ajax pagination.

[Demo site](http://cakephp.control-code.com/)

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require controlcode/cakephp-json-switch

```

Usage
-----

[](#usage)

Pass GET parameters json to view the json representation of all the variables used in the current view

Example
-------

[](#example)

- Show the json representation

`http://www.example.com/?json`

- Get the json+ld tag

`http://www.example.com/?ldjson`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2904d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20e3ca8afa153e4e50feba891112b9f21c73599b3895113a697e75850a5f34fe?d=identicon)[folojona](/maintainers/folojona)

---

Tags

cakephpcakephp-plugincakephp3jsonjson-apijson-ldjsoncakephpldjson

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/controlcode-cakephp-json-switch/health.svg)

```
[![Health](https://phpackages.com/badges/controlcode-cakephp-json-switch/health.svg)](https://phpackages.com/packages/controlcode-cakephp-json-switch)
```

###  Alternatives

[justinrainbow/json-schema

A library to validate a json schema.

3.6k316.9M612](/packages/justinrainbow-json-schema)[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k135.8M851](/packages/jms-serializer)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[colinodell/json5

UTF-8 compatible JSON5 parser for PHP

30422.2M45](/packages/colinodell-json5)[clue/ndjson-react

Streaming newline-delimited JSON (NDJSON) parser and encoder for ReactPHP.

15267.7M16](/packages/clue-ndjson-react)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
