Can we update the documentation of custom modifiers, to clearly specify that return type string should have quotes. If it doesn't have quotes we get empty value as result
I am thinking of adding this as note below custom modifier doc section
Please note that returned string type should have double quotes in it.
gjson.AddModifier("age", func(json, arg string) string {
if arg == "custom-arg" {
// Quotes is necessary here
return `"test"`
}
return json
})
Can we update the documentation of custom modifiers, to clearly specify that return type string should have quotes. If it doesn't have quotes we get empty value as result
I am thinking of adding this as note below custom modifier doc section