JavaScript implementation of the SQL/JSONPath dialect from SQL2016, version 1.0.1. Provides exists() and values() methods for querying JSON data, similar to JavaScript's RegExp. Includes TypeScript definitions. Suitable for streaming data with lazy iterator support. Differentiated from other JSONPath libraries by strict adherence to the SQL standard and iterator-based API.
npm install sql-jsonpath-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates compiling a JSONPath, checking existence, and extracting a value with the one() helper.
Call data[Symbol.iterator]() when passing arrays as iterables.
Use one() for single expected result or iterate properly.
Check input type: if using with iterators, expect iterator result.
Use import { compile } from 'sql-jsonpath-js'Ensure compile() returns a SqlJsonPathStatement object.
No dependency data recorded yet.