Create parser for anchor in JSON

This commit is contained in:
Bálint Bokros 2017-11-27 18:42:34 +01:00
parent 9b5bfcf9c8
commit 8d8f55bbe6

6
lib/util.py Normal file
View File

@ -0,0 +1,6 @@
import json
def parse_anchor_from_message(message):
message_json = json.loads(message)
return message_json['anchor']