Record the field name of JSON objects to improve error messages.