I have several moderately-size data sets in JSON (a few KB each) that need to be accessed by both my JavaScript controllers (across several different components) and their Apex counterparts, along with the Apex data source for the components' design resource.
What are the best practices for making this data available? I'm currently storing a JavaScript file in a static resource that's loaded by components and simply assigns a block of JSON to an attribute of 'window', but that means I'll need a second copy of the file for the Apex controller to parse, and it's not clear to me that this is the right way to go.