skrf.io.general.to_json_string

skrf.io.general.to_json_string(network)[source]

Dumps Network to JSON string.

Faster than converting and saving as touchstone. Safer than pickling (no arbitrary code execution on load).

Parameters:

network (Network object) – A Network object to be serialized and returned as a JSON string.

Returns:

json – JSON string representation of a network object.

Return type:

str