From 8d8f55bbe69b36113db01d8bbe0dd7de3b6c6e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Mon, 27 Nov 2017 18:42:34 +0100 Subject: [PATCH] Create parser for anchor in JSON --- lib/util.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/util.py diff --git a/lib/util.py b/lib/util.py new file mode 100644 index 0000000..7c2fca5 --- /dev/null +++ b/lib/util.py @@ -0,0 +1,6 @@ +import json + + +def parse_anchor_from_message(message): + message_json = json.loads(message) + return message_json['anchor']