Hello,
Is there way to load a protocol from a json file?
For example, the protocol can be serialized to JSON using:
# serialize the protocol as Autoprotocol JSON
print(json.dumps(p.as_dict(), indent=2))
How do I go the other way? Ideally, something like:
with open("protocol.json", "r") as f:
p = Protocol.from_dict(json.load(f))