I need a way to define a filter for an unknown type. The filter should be able to check an incoming JSON object against that filter. The filter should be JSON-serializable as well.
For example a filter that defines:
- The object should have a property Prop1 with value Val1
- It should have a property Prop2 that has an object as value, with SubProp1 equal to Val2
- It should have a Prop3 that contains one of these values: [1, 2, 3]
Does something like this already exist, or will I need to implement this from scratch?