Converting key-values pairs #19655
-
Hi Team, We have an requirement where we want to convert one of the JSON field into key-value pairs Here we want to convert value of resource into key-value pairs Input: Excepted Output: Please help us understand how can we achieve this using vector. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Unfortunately I don't think that sort of thing would be possible in VRL. You should be able to use a Lua transform though. |
Beta Was this translation helpful? Give feedback.
-
@KrishnaJyothika here's a way to this.. Here's a playground link. Here's the example, somewhat verbose but it does work.
|
Beta Was this translation helpful? Give feedback.
@KrishnaJyothika here's a way to this..
Here's a playground link.
Here's the example, somewhat verbose but it does work.