I am looking for suggestions on how best to send multimap values from java to javascript in json format. Besides using an object with a key field and an arraylist, are there any other options I could explore to send multimap values in json format for processing in javascript on the browser? thanks in advance
Share
If you intend on processing all the values you might just want to send it as a list of pairs.
Otherwise then that map to lists is your friend.
Some code for clarity.