The Google Jsonnet for PHP.

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.

Caveat: Note that Jsonnet unparses JSON in a simple way. In particular, it alphabetically reorders object fields
in its output. This is natural and compatible with JSON, since if order is meaningful, an array of pairs should
be used instead of an object. Also, unparsing JSON using a canonical ordering of field names makes it possible
to use diff to compare outputs. However, the example output on this page has been manually re-ordered in order
to allow easier visual comparison to the given input. The whitespace of the output has also been tweaked to make
it fit more neatly on the page. So, if you run these examples yourself, the output might be different (but

License: Apache2.0

Latest releases

Version Release Download
1.3.1 2018-05-27 Jsonnet-1.3.1.tgz
1.3.0 2018-03-29 JsonNet-1.3.0.tgz
1.2.0 2017-11-28 JsonNet-1.2.0.tgz
1.1.1 2016-08-07 JsonNet-1.1.1.tgz
1.1.0 2016-07-14 JsonNet-1.1.0.tgz
Show all releases


Version Message
1.3.1 - Merged formatting cleanups for README from google.
- Rename class from JsonNet to Jsonnet.
1.3.0 - Update Lib JsonNet use v0.10.0.
- Support PHP 7.
1.2.0 - Update Lib JsonNet use v0.9.5.
- Add function JsonNet::fmtFile.
- Add function JsonNet::fmtSnippet.
1.1.1 - Fixed issue #4, pecl install failed.
1.1.0 - Update Lib JsonNet use v0.8.9.
- Fixed issue #1 #2, install error and .so load failed.
Show complete changelog