cancel
Showing results for 
Search instead for 
Did you mean: 

String to Object

KTsnap
New Contributor III

Hi All, KIndly help to get below output

"entity": [
      {
        "tenantId": "tv",
        "type": "rdm/lookupTypes/FAMILY_TYPE",
        "code": "Delivery Assurance",
        "enabled": true,
        "parents": [
          "rdm/lookupTypes/FAMILY/Consulting",
          "rdm/lookupTypes/FAMILY/Services"
        ]
      },
       {
        "tenantId": "tv",
        "type": "rdm/lookupTypes/PARENT_TYPE",
        "code": "Delivery Service",
        "enabled": true,
        "parents": [
          "rdm/lookupTypes/FAMILY/Training"
        ]
      }
    ]

Output

[
	{ 
	"code": "Delivery Assurance",
	"Parents" : "Consulting"
	},
	{
	"code": "Delivery Assurance",
	"Parents" : "Services"
	},
	{
	"code": "Delivery Service",
	"Parents" : "Training"
	}
	]
2 REPLIES 2

SpiroTaleski
Valued Contributor

@KTsnap

Please find the attached sample pipeline:

Community_2021_09_28.slp (5.2 KB)

Regards,
Spiro Taleski

KTsnap
New Contributor III

THanks a lot. this is really helpful.