Closed xnaveira closed 6 years ago
I'm not sure we have a mechanism for that just yet. I could imagine creating a transform for mapping an object's keys to an array that might do what you want. We'd be happy to accept a PR for that kind of functionality.
Hey @xnaveira you can do this with the underlying jsonparser
library that kazaam is built on.
Basically call this with a callback function that prints the provided key: https://godoc.org/github.com/qntfy/jsonparser#ObjectEach
If you have an object like this:
How do you get the "myrootkey" literal value?