Null entire json objects

I’m trying to populate an object based on another field. e.g. if i’ve got a hit type field of “page_view”, “exception” and associated json objects of exceptionInfo.isFatal, exceptionInfo.message, etc. So when the hit type is “page_view” i need to null out the exceptionInfo object since its not relevent for a page_view. I CAN get the fields to null out using nil and a function but its more natural to have the entire exceptionInfo object as null rather then the child fields.

Is this possible?

Yes, if you uncheck “include null values” at the bottom of the schema, then the entire exceptionInfo object will omitted if all keys have null values. Here’s an example:

thanks. works like a charm