I had a similar initial reaction, and your second intuition makes more sense. The responsibility is now offloaded from JS side to server side to generate proper json. I can see a gem to generate the json based on configurations options and combine with data in rails/sinatra apps.