Example #1
0
 public static string SerializeObject(object value, Formatting formatting, SerializerSettings settings)
 {
     if (value == null)
     {
         return(Null);
     }
     if (formatting == Formatting.Indented)
     {
         settings.Pretty = true;
     }
     return(ShiboJsonStringSerializer.Serialize(value));
 }
Example #2
0
 public static void SerializeObject(JsonString stream, object value, Formatting formatting, SerializerSettings settings)
 {
     if (value == null)
     {
         stream.WriteNullWithoutName();
         return;
     }
     stream.sets = settings;
     ShiboJsonStringSerializer.Serialize(stream, value);
 }
Example #3
0
 public static void Serialize(JsonString stream, object value, JsonStringContext info, SerializerSettings settings)
 {
     stream.sets = settings;
     ShiboJsonStringSerializer.Serialize(stream, value, info);
 }
Example #4
0
 public static string SerializeObject(object value, SerializerSettings settings)
 {
     return(SerializeObject(value, Formatting.None, settings));
 }
Example #5
0
 public static void Serialize(JsonString stream, object value, SerializerSettings settings)
 {
     SerializeObject(stream, value, Formatting.None, settings);
 }