| Index: recipe_engine/types.py
|
| diff --git a/recipe_engine/types.py b/recipe_engine/types.py
|
| index 7859af93324fd84ddec8419319ca5583c4927798..693ae36b1434d49b8657b46fe70fea5403f71db9 100644
|
| --- a/recipe_engine/types.py
|
| +++ b/recipe_engine/types.py
|
| @@ -71,6 +71,14 @@ class FrozenDict(collections.Mapping):
|
| def __repr__(self):
|
| return 'FrozenDict(%r)' % (self._d.items(),)
|
|
|
| + def to_json(self, **kw):
|
| + """Returns (str): a JSON string containing the encoded FrozenDict.
|
| +
|
| + Args:
|
| + kw: Keyword arguments to forward to "json.dumps".
|
| + """
|
| + return json.dumps(self._d, **kw)
|
| +
|
|
|
| class StepPresentation(object):
|
| STATUSES = set(('SUCCESS', 'FAILURE', 'WARNING', 'EXCEPTION'))
|
|
|