How to format a Group By view
I could not find a way to format the Group By view.
I could not find a way to get values from previous/next rows to make my own Group By either.
For example, it doesn't seems possible to go from this:

to the following grouped format:

This is the default available formating for a group by:

Edit: (Remade the last screenshot to be more like my examples)
Available formating for a group by:

Originally posted by @jogood in https://github.com/SharePoint/sp-dev-docs/issues/3495#issuecomment-549501487
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
This is not currently supported in the JSON schema. I would also appreciate adding the ability to modify / style group headings.
As a workaround, we can use column formatting to achieve it.
Example:
Create a custom list "TestList", add new field "Value". Group by the default "Title" field.
Formatting "Title" column using the JSON below.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "[$Value]"
}
Formatting "Value" column using the JSON below.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": ""
}
The result:
Dennis Guo Microsoft SharePoint Community Support
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues