I use a Spring MVC controller method in order to display a html view and that view requires JSON data that is available in the model i.e. a collection/array of postcodes.
I thought of outputting the JSON data inline in the html view inside <script tags but before doing so I would like to know whether there isn't a better practice...
Can anyone please advise?