ValueError on flags diferent to JSON_INVALID_UTF8_IGNORE (#3102)

If the flags parameter is different than the constant JSON_INVALID_UTF8_IGNORE, a ValueError exception is thrown.
This commit is contained in:
JeiHO
2024-01-11 19:08:29 -06:00
committed by GitHub
parent 6851c0f2ae
commit 305b2134e2

View File

@@ -100,6 +100,10 @@
If <parameter>depth</parameter> is outside the allowed range,
a <classname>ValueError</classname> is thrown.
</para>
<para>
If <parameter>flags</parameter> is not a valid flag,
a <classname>ValueError</classname> is thrown.
</para>
</refsect1>
<refsect1 role="examples">