# json-write

> A stream-based serializer for JSON.

Latest version **1.0.0** (published 2016-01-28) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install json-write
pnpm add json-write
yarn add json-write
bun add json-write
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-01-28 |
| First published | 2013-09-04 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36 |
| Author | Mike Bostock |
| Maintainers | mbostock |
| Keywords | json, stream |

## Links

- npm: https://www.npmjs.com/package/json-write
- Repository: https://github.com/mbostock/json-write
- Issues: https://github.com/mbostock/json-write/issues
- npm.io page: https://npm.io/package/json-write

## 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

- 1.0.0 (latest) — 2016-01-28
- 0.0.3 — 2013-09-05
- 0.0.2 — 2013-09-04
- 0.0.1 — 2013-09-04

## README

# json-write

This module implements a stream-based JSON serializer. Whereas JSON.stringify tends to run out memory, this serializer can handle very large objects without creating massive strings in memory.

```js
var jsonWrite = require("json-write");

var writer = jsonWrite();
writer.pipe(process.stdout);
writer.write({type: "Topology", objects: [1,2]});
writer.end({type: "Topology", objects: [1,2]});
```

Each object you *writer*.write is separated by a new line.

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