New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ajon

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajon

More Accurate Than JSON

latest
Source
npmnpm
Version
2.1.4
Version published
Weekly downloads
3
-86.96%
Maintainers
1
Weekly downloads
 
Created
Source

ajon

More Accurate Than JSON

It may be a problem for some projects (including rhaboo) that JSON mangles arrays: non-numerically named properties are discarded and nulls are filled into all the sparse positions (wheras JS objects in memory can distinguish between property values of null, undefined and deleted.)

This module provides stringify(object) and parse(string) analogous to JSON such that arrays are preserved properly.

There's no attempt to deal with prototypes or function-valued properties. Regexes are not dealt with yet but could be.

The serialised notation is not pretty enough to read for pleasure, and there are no customisation options. It's only intended for computers to read.

It's not known how ajon.parse reacts to strings that were not generated with ajon.stringify, therefore it's not known to be secure enough to use over a network. Feel free to fork it into a version that claims to be secure.

Install with npm install ajon and include with <script src='node_modules/ajon/src/ajon.js'></script>

Keywords

javascript

FAQs

Package last updated on 29 Sep 2014

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