Added JSON-serialization to deployments.