The Google JsonNet for PHP.

Jsonnet language, from its most basic features to its powerful object model,
punctuated with examples drawn from the world of cocktails. These examples are
meant to be fun, and although a little contrived, do not restrict our thinking
to any one particular application of Jsonnet.

WWW: https://pecl.php.net/package/jsonnet