posted 5 years ago
That would be my preferred way, yes. You can just send a JavaScript object as the request body, and use the response (also in JSON) to update the model at the client side, which will automatically update the UI if you're using a JavaScript framework that supports model-view bindings.