Closed egjlmn1 closed 2 months ago
can just do it with friends.#.{first,"age":age.@tostr}
but still weird that thats the output...
@egjlmn1 as mentioned in the multipaths documentation you can specify the name of the fields:
friends.#.{first,"age":age.@tostr}
P.S. I see you found the answer while I was writing :)
Given this json
And this path:
friends.#.{first,age.@tostr}
I want to get[{"first":"Dale","age":"44"},{"first":"Roger","age":"68"},{"first":"Jane","age":"47"}]
But getting instead[{"first":"Dale","@tostr":"44"},{"first":"Roger","@tostr":"68"},{"first":"Jane","@tostr":"47"}]
I'm guessing this is a bug, is there another way to get what I want?