Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fbbk-json

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fbbk-json

Parse JSON-Object string (not normalized JSON string) into JSON object.

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

F[嗶][嗶]k JSON

fbbk-json TravisCI Coveralls

Parse JSON-Object string (not normalized JSON string) into JSON object.

Installation

$ npm install fbbk-json --save

or

$ bower install fbbk-json --save

Usage

This package has only one function:

var fJSON = require("fbbk-json");
fJSON.parse(A_JSON_STRING);

BUT

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: [] }   \(●´ϖ`●)/

Contribute

You're welcome to make pull requests!

「雖然我覺得不怎麼可能有人會關注我」

Keywords

FAQs

Package last updated on 15 Jun 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc