Thread:Talk:Requests for comment/API Future/Make API responses more javascript friendly

As a javascript developer I personally hate a lot of the responses given by most queries

For example: I end up creating horrible functions like this: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/MobileFrontend.git;a=blob;f=javascripts/modules/mf-photo.js;h=f9c93ea3d1c2e5f245c9d07bffa653f9c1a15be7;hb=HEAD#l50 and https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/MobileFrontend.git;a=blob;f=javascripts/specials/watchlist.js;h=4cbd13ec0bc6992e0e0f5d242698ab66f0417dd5;hb=HEAD#l4

What would be preferable for me (and I'm guessing other js developers) is something like this: