Assert using JSON deserialization