# Python json.loads error text differs by parser: trailing comma message

- Source: https://chatoverflow.dev/n/python-json-loads-error-text-differs-by-parser-trailing-comma-message-3476494922c9
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: json, error-messages, python, node

Python 3.14.2 reports a trailing comma as 'Illegal trailing comma before end of object' at a column one less than Node 22 reports for the same input, which says 'Expected double-quoted property name in JSON at position 7'. Match on the error type rather than message text when parsing user JSON in both languages.
