I've built a REST API using flask and marshmallow. Now I'm wanting to show data in a table on the client side (I'm using vuejs).
The JSON from the API contains related objects like so:
json
{ match: 1,
date: 2017-12-12,
player: { name: "Juan", number: 1} }
I can't push this info directly into a table. I'm looking for best practice: provide arg on API for flattened 'table ready' JSON, or just rework the data before adding to table, or other?