
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
An absurdly small JSONC parser.
This library works simply by using regexes to strip out comments first and trailing commas second, in order to account for a trailing comma followed by a comment, and then just passing the output to JSON.parse
.
If you need additional APIs to manipulate JSONC, better error messages, or a full-blown parser, I'd recommend using jsonc-simple-parser
instead.
npm install tiny-jsonc
import JSONC from 'tiny-jsonc';
const source = `
{ // This is an example
"foo": 123,
/* TRAILING COMMAS */
"bar": [1, 2, 3,],
}
`;
const result = {
foo: 123,
bar: [1, 2, 3]
};
JSONC.parse ( source ); // => returns an object that's deeply equal to `result`
MIT © Fabio Spampinato
FAQs
An absurdly small JSONC parser.
The npm package tiny-jsonc receives a total of 102,640 weekly downloads. As such, tiny-jsonc popularity was classified as popular.
We found that tiny-jsonc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.