json-mask

JSON →
library 2.0.0 ·javascript
verified Jun 7, 2026

A tiny language and engine for selecting specific parts of a JavaScript object, hiding the rest. Version 2.0.0 is the latest stable release. It preserves the original object structure, unlike JSONPath or JSONSelect. Designed for HTTP partial responses (like Google APIs' ?fields= query). No dependencies, works in Node.js and browsers. Maintained with infrequent releases. Key differentiator: keeps the structure intact instead of flattening results.