3 ms·
Well, a couple of things there: 1. You may not plan to switch to JSON anyway. Serving HTML, whether through a full request or AJAX can be perfectly fine. The s
by ryanbrunner 10y ago
Well, a couple of things there:
1. You may not plan to switch to JSON anyway. Serving HTML, whether through a full request or AJAX can be perfectly fine. The site we're on now has no real Javascript of note, for instance.
2. You might introduce a JSON API for customers, but that doesn't mean that it needs to or even should be the same API you use internally.
3. Even assuming that you know that you'll ultimately move to a JSON API, it can be advantageous to take a quicker approach while you're still figuring out the solution. When you come back to the API, you'll have a better idea of precisely how it should be used.
- xg15 10y agoWell, those are fair points, I agree.