Hi, I need some help with how to do this.
We have about 20 different forms that create JSON payloads. Each of them has a different schema
I could create 20 different flows, use ParseJSON, specify schema, but I would prefer to have one flow that can handle the all the forms.
Luckily the data is quite flat, so I don't have to loop through any subobjects.
I would like to get the data into a format where I can loop through the key/value pairs so that I can process them later.
I have tried to convert to string and split on "," but this failed as the free text fields can have commas.
I didn't manage to split on NewLine either
Its driving me crazy, as if I did this in Powershell I could do this in one command
$parsed = $data | ConvertFrom-Json
Any ideas? Do I really have to write my own parser function to make this work?
Example 1
{
"E-post": "kevin.b@test.com",
"FirstName": "Kevin",
"FreeText": "Anything, including commas and quotes",
"Mobile": 5553344,
"Process": "Test",
"Random": 657899154,
"Receipt": "JVBERi0xLjcKJ",
"Referance": "[ID]:009900025791",
"SYSTEM_Finalized": true,
"SYSTEM_Time": "2024-01-17T14:29:29.6701953Z",
"SYSTEM_User": "",
"Surname": "Bacon",
"UserIdentifier": 75435451111
}
Example 2
{
"E-post": "bob.b@test.com",
"FirstName": "Bob",
"Text": "Anything, including commas and quotes",
"Mobile": 55533344,
"Process": "Testing",
"RandomNumber": 657899154,
"Receipt": "JVBERi0xLjcKJ",
"ReferanceCode": "[ID]:009900025791",
"SYSTEM_Finalized": true,
"SYSTEM_Time": "2024-01-17T14:29:29.6701953Z",
"SYSTEM_User": "",
"Surname": "Bacon",
"UserID": 75435451111
"OtherData": "djlkajdlkas"
}
Hi, I need some help with how to do this.We have about 20 different forms that create JSON payloads. Each of them has a different schemaI could create 20 different flows, use ParseJSON, specify schema, but I would prefer to have one flow that can handle the all the forms.Luckily the data is quite flat, so I don't have to loop through any subobjects.I would like to get the data into a format where I can loop through the key/value pairs so that I can process them later.I have tried to convert to string and split on "," but this failed as the free text fields can have commas.I didn't manage to split on NewLine eitherIts driving me crazy, as if I did this in Powershell I could do this in one command$parsed = $data | ConvertFrom-JsonAny ideas? Do I really have to write my own parser function to make this work?Example 1{"E-post": "kevin.b@test.com","FirstName": "Kevin","FreeText": "Anything, including commas and quotes","Mobile": 5553344,"Process": "Test","Random": 657899154,"Receipt": "JVBERi0xLjcKJ","Referance": "[ID]:009900025791","SYSTEM_Finalized": true,"SYSTEM_Time": "2024-01-17T14:29:29.6701953Z","SYSTEM_User": "","Surname": "Bacon","UserIdentifier": 75435451111}Example 2{"E-post": "bob.b@test.com","FirstName": "Bob","Text": "Anything, including commas and quotes","Mobile": 55533344,"Process": "Testing","RandomNumber": 657899154,"Receipt": "JVBERi0xLjcKJ","ReferanceCode": "[ID]:009900025791","SYSTEM_Finalized": true,"SYSTEM_Time": "2024-01-17T14:29:29.6701953Z","SYSTEM_User": "","Surname": "Bacon","UserID": 75435451111"OtherData": "djlkajdlkas"}