# NetworkList.toJSON() method · @imqueue/net

Source: https://imqueue.org/api/net/latest/net.networklist.tojson/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/net 3.0.2 — generated reference, not hand-written

The CIDR array, so `JSON.stringify` on this object yields the network list.

**Signature:**

```typescript
toJSON(): string[];
```
**Returns:**

string\[\]

The same value as [NetworkList.toArray()](https://imqueue.org/api/net/latest/net.networklist.toarray/) with no arguments, i.e. compressed IPv6.

## Remarks

The result can be handed straight back to the constructor, which makes `JSON.parse`/`new NetworkList` a working round trip — lossless in addresses covered, though not necessarily in record count.

