Currently in [api.ts](https://github.com/Manipal-OSF/website/blob/main/frontend/services/api.ts), the logic for parsing JSON is repeated in `fetchOne` and `fetchData`