Rather than serializing the network config into a string and then later deserializing it, just pass the object through directly.