Hello there!
I need to be able to adjust encoding of certain values based on their value path. For example for { foo: 1, bar: { from: 300, baz: 'hello' }}. I would like for the from property to have custom encoding. One way I could do it is to have a list of paths such as '.bar.from' and then by looking at the current path inside encoding apply custom logic.
Is there a way to achieve this nicely? Can't quite figure it out myself. Thank you!
Hello there!
I need to be able to adjust encoding of certain values based on their value path. For example for
{ foo: 1, bar: { from: 300, baz: 'hello' }}. I would like for thefromproperty to have custom encoding. One way I could do it is to have a list of paths such as'.bar.from'and then by looking at the current path inside encoding apply custom logic.Is there a way to achieve this nicely? Can't quite figure it out myself. Thank you!