#16009: JSON error messages now provide more information.  Patch by Serhiy Storchaka.