dynamodb-json icon indicating copy to clipboard operation
dynamodb-json copied to clipboard

Type declaration has to be uppercase

Open daniel-butler opened this issue 2 years ago • 1 comments

from dynamodb_json import json_util as json 

dynamodb_json_string = "{'s': 'ACTIVE'}"

d = json.loads(dynamodb_json_string)
# {'s': 'ACTIVE'}

# a fix is to pass the string as all upper case
d = json.loads(dynamodb_json_string.upper())
# "ACTIVE"

Right now it is a simple fix I just convert the input string to uppercase

daniel-butler avatar Mar 23 '22 22:03 daniel-butler