4 ms·
One advantage of the "Another Solution" brought up in the article is that the code you write to create JSON for your web pages can be in large part reused for y
by hakunin 3y ago
One advantage of the "Another Solution" brought up in the article is that the code you write to create JSON for your web pages can be in large part reused for your mobile API. Certainly mobile screens are shaped differently, but not entirely. The trick is to abstract JSON-rendering logic in a way that lets you reshuffle bits and pieces for your mobile.
Disclaimer: I wrote the linked article for that solution.