If I have a database table named User with fields for name, Id, and age, how can I retrieve this data as JSON and send it to a JavaScript page? I want to customize the way the data is displayed on the frontend. Specifically, I need help understanding how to store the data in a variable as JSON and manipulate it in the JavaScript file (such as accessing array[name]).
Would it be better to handle this data manipulation in ASP.NET code before sending it to JavaScript, or should I send the raw data to JavaScript and then work with it there? Thank you! :D