function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rafael Santos 34Rafael Santos 34 

how build a json in javascript controller to send to apex controller?


I new in lightning  so I'm lost.

I get the value of a fields and store into a var lineSelected[]
I used the JSON.stringify but I get only the values of the field Without the key field.

Someone have examples of how I built a json in javascript to send to helper and then send to my controller as param?

Can you let me know what you are getting in 'var lineSelected[]', so that I can help you building the JSON in javascript and you can send the entire JSON to the APEX controller?

Do reply back for any clarifications.