Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _is_mapping(value):
return isinstance(value, lupa._lupa._LuaTable) or \
isinstance(value, dict)
for value in response:
def default(self, obj):
if isinstance(obj, lupa._lupa._LuaTable):
return dict(obj)
return json.JSONEncoder.default(self, obj)