function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
@AuraEnabled public String someMethod() { Map<String, String> result = new Map<String, String> { "value1" => "Something", "value2" => "Blah Blah" }; return JSON.serialize(result); }
For your solution you need to use Wrapper class
https://www.sfdcpoint.com/salesforce/wrapper-class-in-lwc/
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
and in LWC just JSON.parse string returned from Apex