def _get_internal_field_by_name(self, name):
        """Gets the field by name, or None if not found."""
        field = self._all_fields.get(name, self._all_fields.get(f"{self._full_name}.{name}"))
        if field is not None:
            return field
        for field_name in self._all_fields:
            # Specific name
            if field_name.endswith(f'.{name}'):
                return self._all_fields[field_name]
Gets the field by name, or None if not found.
src/pyshark/packet/layers/json_layer.py