dynamodb-json
dynamodb-json copied to clipboard
Type declaration has to be uppercase
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