JDogo
Open playground

Command line

The same jdogo command ships with the Python and Node packages. Every command reads a file or - for standard input.

Convert

jdogo compact users.json                 # compact 2.x document
jdogo compact --readable users.json      # full keys and values
jdogo compact -m typed users.json        # with the !JDOGO/2 @doc line
jdogo compact -m v1 users.json           # the old 1.x format
curl -s https://api.example.com/items | jdogo compact - > items.jdogo

Decode

jdogo decode items.jdogo > items.json
jdogo decode --indent 0 items.jdogo

Reads compact, readable, typed and 1.x documents, and plain JSON.

Measure

jdogo stats items.json

Prints bytes and estimated tokens for JSON, compact and typed JDogo, with the savings.

Query

jdogo schemacard orders.json
jdogo eval 'sum(total) where status = "open"' orders.json

schemacard prints what ask() sends to the model. eval runs a compute expression locally.

Compare and constrain

jdogo diff before.json after.json
jdogo gbnf items.json -o items.gbnf

gbnf writes a llama.cpp grammar that holds a local model to valid rows for this table's columns.

Java CLI extras

The Java jar adds a few commands that need the JVM tokenizers:

CommandDoes
tokensExact token counts and reduction against JSON
costMonthly bill, JSON against JDogo, at your prices
schema / validateInfer column types; check a document's structure
benchmarkEncode and decode speed on your file
mcp startRun JDogo as an MCP server over stdio
java -jar jdogo-cli.jar cost orders.json --model gpt-4o-mini \
  --price-in 0.15 --price-out 0.60 --calls 1000000 --output-tokens 20