I have a data set that is receiving JSON Name and JSON String Values from an API that looks like the following:
| JSON Name | JSON String Value |
| ID | 322 |
| FirstName | John |
| LastName | Peter |
| Email | email@email.com |
| Number | 232343242 |
| ContactID | 45325 |
| ID | 34434 |
| FirstName | Joe |
| LastName | Lin |
| LastName | Dow |
| Email | email@email.com |
| Number | 4533 |
| ContactID | 4646546 |
| ID | 3545 |
| FirstName | Peter |
| LastName | White |
| LastName | Mull |
| Email | email@email.com |
| Number | 45435 |
| ContactID | 4534543 |
I want to group each json object so i can do text to columns grouping by the ID. Sometimes the number of rows per json object is inconsistent, for example one json object could have 9 rows, some 10, however every new json object starts with the row value "ID". Is it possible to group all of the values within that "ID" span of rows. Desired output would be:
| JSON Name | JSON String Value | Grouping ID |
| ID | 322 | 1 |
| FirstName | John | 1 |
| LastName | Peter | 1 |
| Email | email@email.com | 1 |
| Number | 232343242 | 1 |
| ContactID | 45325 | 1 |
| ID | 34434 | 2 |
| FirstName | Joe | 2 |
| LastName | Lin | 2 |
| LastName | Dow | 2 |
| Email | email@email.com | 2 |
| Number | 4533 | 2 |
| ContactID | 4646546 | 2 |
| ID | 3545 | 3 |
| FirstName | Peter | 3 |
| LastName | White | 3 |
| LastName | Mull | 3 |
| Email | email@email.com | 3 |
| Number | 45435 | 3 |
| ContactID | 4534543 | 3 |