jqcpp

jqcpp

A compact C++20 command-line JSON processor inspired by jq, built around a tokenizer, parser, evaluator, and pretty-printer.

jqcpp example
echo '{"x": 10, "y": 5}' | jqcpp '.x + .y'
15

What it supports

JSON processing

Tokenize, parse, evaluate, and pretty-print JSON input.

jq-like filters

Use identity filters, field access, array indexes, and slices.

Small expression set

Use pipes, numeric arithmetic, length, and keys.

Build from source

CMake
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build

Project introduction

Watch the short jqcpp introduction video for an overview of the project and command-line behavior.

Open YouTube video