json-schema-filter

JSON →
library 0.1.5 ·javascript
verified Jun 7, 2026

Filters objects from a JSON document based on a JSON Schema, removing properties not defined in the schema. Version 0.1.5 is the latest. It recursively processes nested objects and arrays, but does not validate against the schema; for validation use a separate tool like JSV. Designed for performance when the schema is smaller than the document. Typically used for cleaning up JSON data by stripping unknown fields.