I would like to pass data from Spring MVC to javascript but I am not sure what is the best way to do it.
Say, in javascript, there an array
var myArray = new Array();
In backend java, there is an array
int[] myArray = new int[100];
What is the best way to pass this array to the front end javascript. What about multiple arrays as well?
Thanks!