Skip to content

Load a Protocol from Autoprotocol JSON #219

Description

@opensean

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))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions