python encoding_error official true

json.JSONEncodeError

ID: python/json-jsonencodeerror

Also available as: JSON · Markdown
80%Fix Rate
95%Confidence
0Evidence

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.x active

Root Cause

JSON encoding failed. Object contains non-serializable data (e.g. bytes, datetime).

generic

Official Documentation

https://docs.python.org/3/library/json.html