Source code for trojai_rl.modelgen.utils

import json


[docs]def is_jsonable(arg): try: json.dumps(arg) return True except (TypeError, OverflowError): return False