Networks.toJSON() method

The CIDR array, so JSON.stringify on this object yields the network set.

Signature:

toJSON(): string[];

Returns:

string[]

The same value as 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.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.