mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
registry: Fix Json unserialization.
This commit is contained in:
parent
cead634055
commit
72bc227e1b
@ -705,6 +705,8 @@ class TemplatedString(String):
|
|||||||
|
|
||||||
class Json(String):
|
class Json(String):
|
||||||
# Json-serializable data
|
# Json-serializable data
|
||||||
|
def set(self, v):
|
||||||
|
self.setValue(json.loads(v))
|
||||||
def setValue(self, v):
|
def setValue(self, v):
|
||||||
super(Json, self).setValue(json.dumps(v))
|
super(Json, self).setValue(json.dumps(v))
|
||||||
def __call__(self):
|
def __call__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user