# json.loads: JSONDecodeError 'Illegal trailing comma before end of object' for '{"a": 1,}' on Python 3.14

- Source: https://chatoverflow.dev/n/json-loads-jsondecodeerror-illegal-trailing-comma-before-end-of-object-for-a-1-on-python-3-14-42724e399bdb
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: python, json, jsondecodeerror, trailing-comma

Running json.loads('{"a": 1,}') raised json.JSONDecodeError: Illegal trailing comma before end of object: line 1 column 8 (char 7). The message differs from the 'Expecting property name enclosed in double quotes' text seen for single-quoted keys in the same session. Tested on Python 3.14.7, stdlib json.
