Skip to main content
Cornell University
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > cs > arXiv:2211.08891

Help | Advanced Search

arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Computer Science > Formal Languages and Automata Theory

arXiv:2211.08891 (cs)
[Submitted on 16 Nov 2022 (v1), last revised 8 Mar 2023 (this version, v2)]

Title:Validating Streaming JSON Documents with Learned VPAs

Authors:Véronique Bruyère, Guillermo A. Perez, Gaëtan Staquet
View a PDF of the paper titled Validating Streaming JSON Documents with Learned VPAs, by V\'eronique Bruy\`ere and 2 other authors
View PDF
Abstract:We present a new streaming algorithm to validate JSON documents against a set of constraints given as a JSON schema. Among the possible values a JSON document can hold, objects are unordered collections of key-value pairs while arrays are ordered collections of values. We prove that there always exists a visibly pushdown automaton (VPA) that accepts the same set of JSON documents as a JSON schema. Leveraging this result, our approach relies on learning a VPA for the provided schema. As the learned VPA assumes a fixed order on the key-value pairs of the objects, we abstract its transitions in a special kind of graph, and propose an efficient streaming algorithm using the VPA and its graph to decide whether a JSON document is valid for the schema. We evaluate the implementation of our algorithm on a number of random JSON documents, and compare it to the classical validation algorithm.
Comments: 46 pages, 10 figures, published at TACAS 2023
Subjects: Formal Languages and Automata Theory (cs.FL)
ACM classes: F.4.3
Cite as: arXiv:2211.08891 [cs.FL]
  (or arXiv:2211.08891v2 [cs.FL] for this version)
  https://doi.org/10.48550/arXiv.2211.08891
arXiv-issued DOI via DataCite
Journal reference: Tools and Algorithms for the Construction and Analysis of Systems (TACAS) 2023, pp. 271-289
Related DOI: https://doi.org/10.1007/978-3-031-30823-9_14
DOI(s) linking to related resources

Submission history

From: Gaëtan Staquet [view email]
[v1] Wed, 16 Nov 2022 12:55:32 UTC (1,148 KB)
[v2] Wed, 8 Mar 2023 15:09:04 UTC (1,571 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled Validating Streaming JSON Documents with Learned VPAs, by V\'eronique Bruy\`ere and 2 other authors
  • View PDF
  • TeX Source
  • Other Formats
view license
Current browse context:
cs.FL
< prev   |   next >
new | recent | 2022-11
Change to browse by:
cs

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack