AuraEnabled annotation not working correctly at runtime for Json.serialze()
Last updated 2017-04-15 ·Reference W-3814884 ·Reported By 2 users
Response values are not correctly returned at runtime when using Json.serialze() for class instances with AuraEnabled annotations on class properties.
Issue impacts select Developer Edition orgs. Additionally, CS46 is the only sandbox instance impacted.
Create a simple test case that shows the difference between returning an apex class that contains a String, a serialised apex class and a simple String.
An example of the repro can be seen as the following: http://salesforce.stackexchange.com/questions/165999/empty-responses-to-lightning-component-actions
An empty object is being returned rather than a populated JSON object when an AuraEnabled method returns a serialized class instance.
The bug is being worked on actively for a real fix and that will be released in an upcoming patch.
Please contact Salesforce support if an immediate fix is needed.
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.