Lune

SIGMOD2022Top-tier venue

JEDI: These aren't the JSON documents you're looking for?

Thomas Hütter, Nikolaus Augsten, Christoph M. Kirsch, Michael J. Carey, Chen Li

Abstract

The JavaScript Object Notation (JSON) is a popular data format used in document stores to natively support semi-structured data. In this paper, we address the problem of JSON similarity lookup queries: given a query document and a distance threshold 𝜏, retrieve all JSON documents that are within 𝜏 from the query document. Due to its recursive definition, JSON data are naturally represented as trees. Different from other hierarchical formats such as XML, JSON supports both ordered and unordered sibling collections within a single document. This feature poses a new challenge to the tree model and distance computation. We propose JSON tree, a lossless tree representation of JSON documents, and define the JSON Edit Distance (JEDI), the first edit-based distance measure for JSON documents. We develop an algorithm, called QuickJEDI, for computing JEDI by leveraging a new technique to prune expensive sibling matchings. It outperforms a baseline algorithm by an order of magnitude in runtime. To boost the performance of JSON similarity queries, we introduce an index called JSIM and a highly effective upper bound based on tree sorting. Our algorithm for the upper bound runs in 𝑂 (𝑛𝜏) time and 𝑂 (𝑛 + 𝜏 log 𝑛) space, which substantially improves the previous best bound of 𝑂 (𝑛 2 ) time and 𝑂 (𝑛 log 𝑛) space (where 𝑛 is the tree size). Our experimental evaluation shows that our solution scales to databases with millions of documents and JSON trees with tens of thousands of nodes.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • ReCG: Bottom-Up JSON Schema Discovery Using a Repetitive Cluster-and-Generalize Framework cites JSON Tiles: Fast Analytics on Semi-Structured Data
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. ReCG: Bottom-Up JSON Schema Discovery Using a Repetitive Cluster-and-Generalize FrameworkJoohyung Yun, Byungchul Tak, Wook-Shin HanVLDB 2024 · 7 citations
  2. Extensible and Robust Evaluation of Similarity QueriesDaniel Ulrich Schmitt, Thomas Hütter, Nikolaus AugstenVLDB 2025

Builds on1

  1. JSON Tiles: Fast Analytics on Semi-Structured DataDominik Durner, Viktor Leis, Thomas NeumannSIGMOD 2021 · 28 citations

Related papers

  1. Õ(n+poly(k))-time Algorithm for Bounded Tree Edit DistanceDebarati Das, Jacob Gilbert, MohammadTaghi Hajiaghayi, Tomasz Kociumaka et al.FOCS 2022 · 5 citations
  2. Streaming Validation of JSON Documents Against SchemasAlexis Le Glaunec, Angela W. Li, Konstantinos MamourasVLDB 2026 · 2 citations
  3. Boosting Graph Similarity Search through Pre-ComputationJongik KimSIGMOD 2021 · 10 citations
  4. Speeding Up GED Verification for Graph Similarity SearchLijun Chang, Xing Feng, Xuemin Lin, Lu Qin et al.ICDE 2020 · 31 citations
  5. BETZE: Benchmarking Data Exploration Tools with (Almost) Zero EffortNico Schäfer, Sebastian MichelICDE 2022 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines