An open API service indexing awesome lists of open source software.

https://github.com/vutran/json-stringify-plus

Convert your JSON objects to a JSON string with single or double quotes.
https://github.com/vutran/json-stringify-plus

javascript json stringify

Last synced: about 2 months ago
JSON representation

Convert your JSON objects to a JSON string with single or double quotes.

Awesome Lists containing this project

README

          

# json-stringify-plus

> Convert your JSON objects to a JSON string with single or double quotes.

## Install

```bash
$ npm install --save json-stringify-plus
```

## Usage

```js
const jsonStringifyPlus = require('json-stringify-plus');

const data = {
foo: 'foo',
};

const doubleQuotes = jsonStringifyPlus(data);
// {"foo":"foo"}

const singleQuotes = jsonStringifyPlus(data, { single: true });
// {'foo':'foo'}}
```

## License

MIT © [Vu Tran](https://github.com/vutran/)