assert-json-diff icon indicating copy to clipboard operation
assert-json-diff copied to clipboard

support serde values

Open yanns opened this issue 3 years ago • 0 comments

When we already have Value, we can avoid using the Serialize trait. This allows us:

  • to avoid the usage of two panic!
  • to have faster code. No need to serialize the whole tree.

As an alternative, we could also make the following function public:

pub(crate) fn diff<'a>(lhs: &'a Value, rhs: &'a Value, config: Config) -> Vec<Difference<'a>>

yanns avatar Jun 29 '22 16:06 yanns