We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0360598 commit 25255d5Copy full SHA for 25255d5
adafruit_ble/characteristics/json.py
@@ -42,10 +42,12 @@ def __init__(
42
43
@staticmethod
44
def pack(value):
45
+ """Converts a JSON serializable python value into a utf-8 encoded JSON string."""
46
return json.dumps(value).encode("utf-8")
47
48
49
def unpack(value):
50
+ """Converts a utf-8 encoded JSON string into a python value."""
51
return json.loads(str(value, "utf-8"))
52
53
def __get__(self, obj, cls=None):
0 commit comments