public static void QuaternionExp(Quaternion value, JsonWriter writer)
 {
     writer.WriteObjectStart();
     writer.WritePropertyName("x");
     writer.Write(value.x);
     writer.WritePropertyName("y");
     writer.Write(value.y);
     writer.WritePropertyName("z");
     writer.Write(value.z);
     writer.WritePropertyName("w");
     writer.Write(value.w);
     writer.WriteObjectEnd();
 }
 public static void ColorExp(Color value, JsonWriter writer)
 {
     writer.WriteObjectStart();
     writer.WritePropertyName("r");
     writer.Write(value.r);
     writer.WritePropertyName("b");
     writer.Write(value.b);
     writer.WritePropertyName("g");
     writer.Write(value.g);
     writer.WritePropertyName("a");
     writer.Write(value.a);
     writer.WriteObjectEnd();
 }
        public static void BetweenFilterExporter(BetweenFilter value, JsonWriter writer)
        {
            writer.WriteObjectStart();

            writer.WritePropertyName("operator");
            writer.Write("between");

            if (!string.IsNullOrEmpty(value.item))
            {
                writer.WritePropertyName("item");
                writer.Write(value.item);
            }

            writer.WritePropertyName("value");
            writer.WriteArrayStart();
            WriteValue(value.value, writer);
            WriteValue(value.endvalue, writer);
            writer.WriteArrayEnd();

            writer.WriteObjectEnd();
        }
        public static void FilterExporter(Filter value, JsonWriter writer)
        {
            writer.WriteObjectStart();

            writer.WritePropertyName("operator");
            writer.Write(value.op.ToString());

            if (!string.IsNullOrEmpty(value.item))
            {
                writer.WritePropertyName("item");
                writer.Write(value.item);
            }

            writer.WritePropertyName("value");
            WriteValue(value.value, writer);

            writer.WriteObjectEnd();
        }
 public static void Vector2Exp(Vector2 value, JsonWriter writer)
 {
     writer.WriteObjectStart();
     writer.WritePropertyName("x");
     writer.Write(value.x);
     writer.WritePropertyName("y");
     writer.Write(value.y);
     writer.WriteObjectEnd();
 }