Skip to content
HALOWERK

Formatwerk

jsonpath query

JSONPath follows RFC 9535 (February 2024): own parser and evaluator for name, wildcard, index, slice and filter selectors, descendant segments, comparisons and the functions length, count, match, search and value with the RFC type rules; match/search take I-Regexp (RFC 9485) translated to RE2, so evaluation is linear and cannot be stalled by regular expressions. It passes all 715 cases of the JSONPath Compliance Test Suite (commit 20ebdcc, 2026-11-01) and returns each value with its.

POST https://format.halowerk.com/v1/jsonpath-query

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
dataSee schemaYesThe JSON value to query (object, array or scalar).
querystringYesJSONPath (starting with $) or JMESPath expression.
languagestringNoQuery language.
max_resultsintegerNoMaximum number of JSONPath results returned.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data",
    "query"
  ],
  "properties": {
    "data": {
      "description": "The JSON value to query (object, array or scalar)."
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "description": "JSONPath (starting with $) or JMESPath expression."
    },
    "language": {
      "type": "string",
      "enum": [
        "jsonpath",
        "jmespath"
      ],
      "default": "jsonpath",
      "description": "Query language."
    },
    "max_results": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000,
      "default": 1000,
      "description": "Maximum number of JSONPath results returned."
    }
  }
}

Open original schema

Published input example

{
  "data": {
    "store": {
      "book": [
        {
          "category": "reference",
          "author": "Nigel Rees",
          "title": "Sayings of the Century",
          "price": 8.95
        },
        {
          "category": "fiction",
          "author": "Evelyn Waugh",
          "title": "Sword of Honour",
          "price": 12.99
        },
        {
          "category": "fiction",
          "author": "Herman Melville",
          "title": "Moby Dick",
          "isbn": "0-553-21311-3",
          "price": 8.99
        },
        {
          "category": "fiction",
          "author": "J. R. R. Tolkien",
          "title": "The Lord of the Rings",
          "isbn": "0-395-19395-8",
          "price": 22.99
        }
      ],
      "bicycle": {
        "color": "red",
        "price": 399
      }
    }
  },
  "query": "$..book[?@.price < 10].title"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’