JSON hijacking attack guarding
- Making sure to avoid JSON issues with get requests by using application/json MIME types.
- moving getOrganizationMetrics function
- renaming parameters in fetchJSON, fetchHelper function.
- Trying to get rid of cognitive complexity of useMetricsDashboard hook.
- Using some instead of find.
Edited by abhayashrestha