Need help with jsonnet?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

5.1K Stars 362 Forks Apache License 2.0 1.1K Commits 197 Opened issues


Jsonnet - The data templating language

Services available


Need anything else?

Contributors list

Jsonnet - The data templating language

Build Status

For an introduction to Jsonnet and documentation, visit our website.

This respositiory contains the original implementation. You can also try go-jsonnet, a newer implementation which in some cases is orders of magnitude faster.

Visit our discussion forum.


Jsonnet is available on Homebrew:

brew install jsonnet

The Python binding is on pypi:

pip install jsonnet

You can also download and install Jsonnet using the vcpkg dependency manager:

git clone
cd vcpkg
./vcpkg integrate install
vcpkg install jsonnet

The Jsonnet port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please create an issue or pull request on the vcpkg repository.

Building Jsonnet

You can use either GCC or Clang to build Jsonnet. Note that on recent versions of macOS,

are actually Clang, so there is no difference.


To build Jsonnet with GCC, run:


To build Jsonnet with Clang, run:

make CC=clang CXX=clang++

To run the output binary, run:


To run the reformatter, run:



Bazel builds are also supported. Install Bazel if it is not installed already. Then, run the following command to build with GCC:

bazel build -c opt //cmd:all

To build with Clang, use one of these two options:

env CC=clang CXX=clang++ bazel build -c opt //cmd:all


bazel build -c opt --action_env=CC=clang --action_env=CXX=clang++ //cmd:all

This builds the

targets defined in
. To launch the output binaries, run:


cmake . -Bbuild
cmake --build build --target run_tests


See the contributing page on our website.

Developing Jsonnet

Running tests

To run the comprehensive suite:

make test

Locally serving the website

You need a

which can either be downloaded from the production website:
wget -O doc/js/libjsonnet.wasm

Or you can build it yourself, which requires checking out go-jsonnet. See the in that repo for instructions.

Then, from the root of the repository you can generate and serve the website using Jekyll:


This should the website on localhost:8200, automatically rebuild when you change any underlying files, and automatically refresh your browser when that happens.

The standard library is documented in a structured format in

. The HTML (input for Jekyll) is regenerated using the following command:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.