--------------- lua sandboxed environment-- function to cross out functions and userdata.-- modified from dump()function atlatc.remove_invalid_data(o, nested)if o==nil then return nil endlocal valid_dt={["nil"]=true, boolean=true,number=true,string=true}iftype(o) ~="table"then--check valid data typeif not valid_dt[type(o)]thenreturn nilend