nsmcp::RequestRoutingTool method encodeSnapshot (public)

 <instance of nsmcp::RequestRoutingTool[i]> encodeSnapshot snapshot

Defined in /usr/local/ns/tcl/nsmcp/traffic-tools.tcl

Encode a routing snapshot as typed JSON fields. Retain route order and availability metadata while converting Tcl containers to arrays and objects.

Parameters:
snapshot (required)
Routing snapshot with availability metadata.
Returns:
The field triples for the encoded routing snapshot.

Testcases:
No testcase defined.
[ show source ]
Show another procedure: