# json_encode

> Do JSON.stringify() like json_encode() in PHP does

Latest version **0.1.0** (published 2015-06-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install json_encode
pnpm add json_encode
yarn add json_encode
bun add json_encode
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-06-22 |
| First published | 2015-06-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Constantin Titarenko |
| Maintainers | titarenko |
| Keywords | JSON, json_encode |

## Links

- npm: https://www.npmjs.com/package/json_encode
- Repository: https://github.com/titarenko/json_encode
- Homepage: https://github.com/titarenko/json_encode#readme
- Issues: https://github.com/titarenko/json_encode/issues
- npm.io page: https://npm.io/package/json_encode

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-06-22

## README

# json_encode

Do `JSON.stringify()` like `json_encode()` in PHP does.

## Installation

```bash
npm i json_encode --save
```

## Usage

```js
var json_encode = require('json_encode');
var encoded = json_encode({ something: 'новое' });

// encoded value will be '{"something":"\\u043d\\u043e\\u0432\\u043e\\u0435"}'
// but not '{"something":"новое"}' as you might expect, having experience with JSON.stringify
```

## License

MIT

---
_Source: https://npm.io/package/json_encode · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
