Skip to content
Bug Barometer

JSON Serialization Filter for Lightning Components Drops Standard Apex Fields from Managed Packages

Salesforce says this works as designed.

Summary

When a managed package with a Lightning component (Aura or LWC) and an Apex class is installed in a subscriber org, the standard object fields from the Apex class may be dropped by the new JSON serialization filter when the Lightning component returns the object to the client.

The issue is caused by a bug (W-9427852). When a Lightning component executes an Apex action in a managed package, the component namespace isn’t set and defaults to null. This namespace mismatch causes the standard object fields to be dropped due to access restrictions.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Working as Expected with 4 reports

    Nov 30, 2026

Also open in Lightning Services