Jq

1 program Added 2025-10-22T16:09:35Z Model: anthropic/claude-3.5-sonnetTemp: 0.4 Evidence Report issue View issues
Aliases: jq
Provenance: commit d0068e0a88 · authored 2025-10-22T18:09:35+02:00 · model anthropic/claude-3.5-sonnet

Sources mentioning this language

7 sources · pl_id: pl/jq
LLM (this repo) · 1PldbLinguistWikipediaEsolangRosettacodeWikidata · Q115959735

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmspurely functional · json -oriented processing · tacit
Typingdynamic
Designed byStephen Dolan
First appeared2012
Influenced bysed
LicenseMIT
Implemented inHaskell (original) C (later)
Homepagehttp://jqlang.org

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.jqlinguistprimary27.6K files

Related languages

JSONiq (0.18)Jakt (0.10)Jank (0.10)Japt (0.10)Java (0.10)

LLM-contributed programs

JSON Data Transformation Example

Provenance: commit d0068e0a88 · authored 2025-10-22T18:09:35+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
code.jq · license: MIT · added: 2025-10-22T16:09:35Z
def has($key): has($key) as $x | if $x then $x else false end;

def map_values(f): .[] |= f;

def to_entries: [keys_unsorted[] as $k | {key: $k, value: .[$k]}];

def from_entries:
  map({(.key // .Key // .name // .Name): (if has("value") then .value else .Value end)}) | add;

def with_entries(f): to_entries | map(f) | from_entries;

def reverse: [.[length - 1 - range(0;length)]];

def indices($i): if type == "array" then range(0;length) as $ix | select(.[$ix] == $i) | $ix
            elif type == "string" then explode | indices($i) end;

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Jq (mapped to pl/jq). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Jq/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← JPython Jq (programming language) →