# lazy-json **Repository Path**: mirrors_egoist/lazy-json ## Basic Information - **Project Name**: lazy-json - **Description**: lazy-json makes it happen to require JSON file with comments in it. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # lazy-json [![Build Status](https://img.shields.io/circleci/project/egoist/lazy-json/master.svg?style=flat-square)](https://circleci.com/gh/egoist/lazy-json/tree/master) lazy-json makes it happen to require JSON file with comments in it. It's awesome for `lazy-json` to work with Atom plugin [`language-json-comments`](https://atom.io/packages/language-json-comments)! ## Install ```bash npm install --save lazy-json ``` ## Example ```javascript // test.lazy.json { // here is my comments "github": "oriented programming" /* things all done ** go home */ } // usage import { requireJSON } from 'lazy-json' const obj = requireJSON('./test.lazy') console.log(obj.github) // it's not ended with `.json` const obj = requireJSON('./.babelrc', true) ``` ## Related - [strip-json-comments](https://github.com/sindresorhus/strip-json-comments) by [@sindresorhus](https://github.com/sindresorhus) ## License MIT © [EGOIST](https://github.com/egoist)