Serialize a PDF or a list of PDFs to a JSON string according to the HS3 standard.


This is an experimental feature and the API might change in the future. DO NOT RELY ON THE OUTPUT FOR ANYTHING ELSE THAN TESTING.

THIS FUNCTION DOESN’T YET ADHERE TO HS3 (but just as a proxy).

​The HEP Statistics Serialization Standard,

or in short, :math:` ext{HS}^3`, is a serialization format for statistical models. It is a JSON/YAML-based serialization that is a coordinated effort of the HEP community to standardize the serialization of statistical models. The standard is still in development and is not yet finalized. This function is experimental and may change in the future.​

Args: obj (ZfitSerializable): The object to dump.

Returns: str: The string representation of the object.