python json字符串中有int类型数字(不带引号)

def jsonfy(s:str)->object:
    obj = eval(s, type('js', (dict,), dict(__getitem__=lambda s, n: n))())
    return obj

  

原文地址:https://www.cnblogs.com/mahailuo/p/11286803.html