@journey-to-code/open-is-json-string
v1.0.0
Published
Small dependency-free JSON-string validation without exception handling at call sites.
Readme
open.is-json-string
Small dependency-free JSON-string validation without exception handling at call sites.
Install
npm install @journey-to-code/open-is-json-stringUsage
isJsonString('{"a":1}'); // true
tryParseJson(input); // { ok: true, value } or { ok: false, error }Runtime
- Node.js 18+
- modern ESM-capable tooling
- zero runtime dependencies
Development
npm testScope
This package intentionally focuses on one small, reusable responsibility. Application-specific behavior belongs in higher-level packages.
License
MIT
