mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 11:33:55 +03:00
Fixed json literal parsing
This commit is contained in:
parent
8f8b38d757
commit
e6e08f60bc
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user