# another-json

> Encode compact, canonical JSON.

Latest version **0.2.0** (published 2015-07-30) · Apache-2.0 license · 0 weekly downloads

## Install

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

## 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.2.0 |
| Published | 2015-07-30 |
| First published | 2015-07-30 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mark Haines |
| Maintainers | negativemjark |
| Keywords | json |

## Links

- npm: https://www.npmjs.com/package/another-json
- Repository: https://github.com/NegativeMjark/another-json
- Homepage: https://github.com/NegativeMjark/another-json#readme
- Issues: https://github.com/NegativeMjark/another-json/issues
- npm.io page: https://npm.io/package/another-json

## Recent versions

- 0.2.0 (latest) — 2015-07-30

## README

Another JSON
============

Encode an object or an array as JSON using the shortest format possible.

    var anotherjson = require('another-json');
    assert(anotherjson.stringify({an: 'example'}) === '{"an":"example"}');

Features
--------

* Encodes objects and arrays as RFC 7159 JSON.
* Sorts object keys so that you get the same result each time.
* Has no inignificant whitespace to make the output as small as possible.
* Escapes only the characters that must be escaped, U+0000 to U+0019 / U+0022 /
  U+0056, to keep the output as small as possible.
* Uses the shortest escape sequence for each escaped character.

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