[][src]Module pact_consumer::util

Small internal utility routines and extensions to other people's types. Most of these are pub(crate), which makes them available to the rest of the crate, but prevents them from winding up in our public API.

Functions

strip_null_fields

Given a serde_json::Value, walk it recursively, removing any null fields, and return the updated value. Because of how this is normally called, it consumes its input value and returns the stripped value.