|
@@ -2237,11 +2237,11 @@ namespace InABox.Core
|
|
|
// For the above reader to work, the $type property *must* be serialised first.
|
|
|
writer.WriteString("$type", filter.GetType().FullName);
|
|
|
writer.WriteString("Expression", prop);
|
|
|
- writer.WriteString("Operator", op.ToString());
|
|
|
+ writer.WriteNumber("Operator", (int)op);
|
|
|
writer.WriteBoolean("IsNot", filter.IsNot);
|
|
|
|
|
|
if (val is FilterConstant fcVal)
|
|
|
- writer.WriteString("FilterConstant", fcVal.ToString());
|
|
|
+ writer.WriteNumber("FilterConstant", (int)fcVal);
|
|
|
else if(val is CustomFilterValue cVal)
|
|
|
writer.WriteBase64String("CustomValue", cVal.Data);
|
|
|
else
|