Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

jsonify

Package Overview
Dependencies
0
Maintainers
2
Versions
2
Issues
File Explorer

Advanced tools

jsonify

JSON without touching any globals

    0.0.1latest

Version published
Maintainers
2
Weekly downloads
6,592,895
decreased by-3.18%

Weekly downloads

Changelog

Source

v0.0.1 - 2022-10-11

Commits

Readme

Source

jsonify Version Badge

github actions coverage License Downloads

npm badge

This module provides Douglas Crockford's JSON implementation without modifying any globals.

stringify and parse are merely exported without respect to whether or not a global JSON object exists.

build status

methods

var json = require('jsonify');

json.parse(source, reviver)

Return a new javascript object from a parse of the source string.

If a reviver function is specified, walk the structure passing each name/value pair to reviver.call(parent, key, value) to transform the value before parsing it.

json.stringify(value, replacer, space)

Return a string representation for value.

If replacer is specified, walk the structure passing each name/value pair to replacer.call(parent, key, value) to transform the value before stringifying it.

If space is a number, indent the result by that many spaces. If space is a string, use space as the indentation.

install

With npm do:

npm install jsonify

To use this module in the browser, check out browserify.

license

public domain

Keywords

FAQs

What is jsonify?

JSON without touching any globals

Is jsonify popular?

The npm package jsonify receives a total of 6,186,342 weekly downloads. As such, jsonify popularity was classified as popular.

Is jsonify well maintained?

We found that jsonify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 2 open source maintainers collaborating on the project.

Last updated on 12 Oct 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc