diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 42cd74a0ca781..cfa0320c6fdd7 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2413,7 +2413,8 @@ def to_json( the default is 'epoch'. double_precision : int, default 10 The number of decimal places to use when encoding - floating point values. + floating point values. The possible maximal value is 15. + Passing double_precision greater than 15 will raise a ValueError. force_ascii : bool, default True Force encoded string to be ASCII. date_unit : str, default 'ms' (milliseconds)