
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Parse JSON-Object string (not normalized JSON string) into JSON object.
$ npm install fbbk-json --save
or
$ bower install fbbk-json --save
This package has only one function:
var fJSON = require("fbbk-json");
fJSON.parse(A_JSON_STRING);
This package support the JSON string that written down like a JSON object in javascript.
For example:
'{"foo": "bar","baz": true}' <-- both JSON and fJSON are supported
'{foo: "bar",baz: true}' <-- only fJSON supported! ٩(๑•̀ω•́๑)۶
So you can do that:
var json1 = '{"foo": "bar","baz": true}';
var json2 = '{foo: \'bar\',baz: true,c:[]}';
JSON.parse(json1); ///< { foo: 'bar', baz: true }
JSON.parse(json2); ///< SyntaxError: Unexpected token f
fJSON.parse(json1); ///< { foo: 'bar', baz: true }
fJSON.parse(json2); ///< { foo: 'bar', baz: true, c: [] } \(●´ϖ`●)/
You're welcome to make pull requests!
「雖然我覺得不怎麼可能有人會關注我」
FAQs
Parse JSON-Object string (not normalized JSON string) into JSON object.
We found that fbbk-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.