React SPA: filter model.json before fetch
Is it possible to filter the en.model.json before the fetch? Our json is large, and want to remove extraneous key/values, specifically the "allowedComponents" that returns a long list of components for every page and appears to be the majority of bloat in the response:
[":children"]["/content/my-app/us/en/my-page"][":items"].root.allowedComponents.components
Perhaps there are query parameters or some other way to return a smaller json response?
I found this tutorial that allows modifying the fetch - although I'm not certain it would be useful in this case: http://experience-aem.blogspot.com/2021/09/aem-cloud-service-pass-request-parameters-in-react-spa-model-json-url.html