Fixup JSON error reporting in previous commits.