Simplify the output for /api/contacts?minimal=true to be truly minimal

The minimal=true parameter doesn’t really minify the output at all at the moment and still leaves us with an pretty annoying JSON structure to deal with… This is especially the case when you try to map the fields in Azure Synapse or Azure Data Factory as those can’t handle the continuously changing contact id in the mapping structure.

 "total": "199871",
    "contacts": {
        "215849": {},
        "215848": {},

It should become:

 "total": "199871",
    "contacts": {
        {},
        {},

And for the minimal character preferably with only the fields > all information. So instead of:

{
"total": "199871",
    "contacts": {
        "215849": {
            "isPublished": true,
            "dateAdded": "2022-09-05T09:13:33+00:00",
            "dateModified": "2022-09-05T09:13:33+00:00",
            "createdBy": null,
            "createdByUser": null,
            "modifiedBy": null,
            "modifiedByUser": " ",
            "id": 215849,
            "points": 1,
            "color": null,
            "fields": {
                "core": {
                    "points": {
				...
                    },
                    "last_active": {
				...
                    },
		    ...
                "professional": [],
                "all": {
                    "id": "215849",
                    "points": 1,
                    "last_active": "2022-09-05 09:13:33",
                    "firstname": null,
                    "lastname": null,
                    "email": "demo@domain.ext",
                    "phone": null,
                    "mobile": null,
                    "address1": null,
                    "address2": null,
                    "city": null,
                    "state": null,
			  ...
                    "optin": true
                }
            }
        }
    }
}

this:

{
"total": "199871",
    "contacts": {
            "isPublished": true,
            "dateAdded": "2022-09-05T09:13:33+00:00",
            "dateModified": "2022-09-05T09:13:33+00:00",
            "all_fields": {
                    "id": "215849",
                    "points": 1,
                    "last_active": "2022-09-05 09:13:33",
                    "firstname": null,
                    "lastname": null,
                    "email": "demo@domain.ext",
                    "phone": null,
                    "mobile": null,
                    "address1": null,
                    "address2": null,
                    "city": null,
                    "state": null,
			  ...
                    "optin": true
            }
    	},
    	{},
    	{}
  }
}