func ApplyToJSON(filter kio.Filter, objs ...marshalerUnmarshaler) error
ApplyToJSON applies the filter to the json objects.
ApplyToJSON marshals the objects into a slice of yaml.RNodes, runs the filter on the slice, and then unmarshals the values back.
The filter must not create or delete objects because the objects are updated in place.
func GetRNode(k json.Marshaler) (*yaml.RNode, error)
GetRNode converts k into an RNode