--- id: LANG-24 family: GR-LANG level: core profiles: [runtime] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-lang/lang-24 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # LANG-24 — An extraction that matches nothing is a miss; a matched null is delivered *GR-LANG (Part I) · level: core · profiles: runtime · added in 1.0* A path that matches nothing and a path that matches a null give different answers, and the extractor keeps them apart, as JSONPath does. Only a miss falls back to the default. ## The rule > **Normative.** This is the rule. > > 1. An extraction that evaluates cleanly and matches nothing is a miss. > > 2. On a miss, the configured default MUST be delivered, the extractor MUST report success as `false`, and the node MUST succeed. > > 3. An extraction that matches a `null` MUST deliver `null` and report success as `true`. > > 4. A matched `false`, `0`, `""`, `[]` or `{}` MUST be delivered as found, and success reported as `true`. ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25), [OPEN-26](https://flowdrop.io/spec/rulings/open-26). ## References **Further reading:** - RFC 9535, JSONPath: Query Expressions for JSON (https://www.rfc-editor.org/rfc/rfc9535) — Tells a query that selects no node apart from one that selects a node whose value is null. This rule keeps the same distinction for every engine. ## Fixtures Test cases whose outcome this rule decides (fixtures/README.md defines each operation): - A matched false, 0 or empty string is delivered as found (`extract`): fixtures/presence/lang-match-empty-delivered.json - A query that matches null delivers null and reports a match (`extract`): fixtures/presence/lang-match-null-delivered.json - A query that matches nothing delivers the default and reports a miss (`extract`): fixtures/presence/lang-miss-delivers-default.json ## Related rules - Names: LANG-8, LANG-22 - Referenced by: LANG-22, LANG-29 --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.