def json_casting(value):
    """Helper function to handle JSON casting."""
    return (
        value.set_casting(lambda x: json.loads(x.replace("'", '"')))
        if isinstance(value, Lazy)
        else json.loads(value)
    )
Helper function to handle JSON casting.
dynaconf/utils/parse_conf.py