Fixed json literal parsing

This commit is contained in:
Syrus Akbary 2016-08-06 19:21:44 -07:00
parent 8f8b38d757
commit e6e08f60bc

View File

@ -16,7 +16,7 @@ class JSONString(Scalar):
@staticmethod
def parse_literal(node):
if isinstance(node, ast.StringValue):
return json.dumps(node.value)
return json.loads(node.value)
@staticmethod
def parse_value(value):