I am currently parsing a json string into an object which gets mapped into a structure similar to this :
[parentobj][childobj][attr1] [parentobj][childobj][attr2] [parentobj][childobj][attr2]
What I want to achieve is to rename all by just removing the
[parentobj] so it will look like this :
[childobj][attr1] [childobj][attr2] [childobj][attr3]
From what I've seen this can be achieve with mutate's rename function but this means that I will have to statically define every single rename statement and it doesn't scale that well .
Does anyone have a better idea on how to do this ?
Thank you in advance!