@@ -949,8 +949,9 @@ instance Seminearring Filter where
950instance ToJSON Filter where
950instance ToJSON Filter where
951 toJSON (AndFilter filters cache) =
951 toJSON (AndFilter filters cache) =
952− object ["and" .= fmap toJSON filters
953+ object [ "filters" .= fmap toJSON filters
953− , "_cache" .= cache]
954+ , "_cache" .= cache]]
955 toJSON (OrFilter filters cache) =
956 toJSON (OrFilter filters cache) =
956 object ["or" .= fmap toJSON filters
957 object ["or" .= fmap toJSON filters