pandera.api.pandas.container.DataFrameSchema.to_json# DataFrameSchema.to_json(target: None = None, **kwargs) → str[source]# DataFrameSchema.to_json(target: os.PathLike, **kwargs) → None Write DataFrameSchema to json file. Parameters target (Optional[PathLike]) – file target to write to. If None, dumps to string. Return type Optional[str] Returns json string if target is None, otherwise returns None.