With Winter '24, to prevent unauthorized serialization and deserialization across packaging namespaces, Salesforce will validate the JsonAccess annotation of your Apex classes.
This validation protects your Apex classes from unauthorized serialization and deserialization across packaging namespaces.
Scope
Apex Classes