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

Source: https://imqueue.org/api/net/latest/net.networks.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 set.

**Signature:**

```typescript
toJSON(): string[];
```
**Returns:**

string\[\]

The same value as [Networks.toArray()](https://imqueue.org/api/net/latest/net.networks.toarray/) with no arguments.

## Remarks

The output can go straight back into the constructor, so `JSON.parse`/`new Networks` round-trips. Note that this flattens both families into one array — which is fine, because the constructor sorts them out again by inspecting each record.

