コード例 #1
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);
 }
コード例 #2
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));
 }
コード例 #3
0
 public static void Serialize(JsonString stream, object value, JsonStringContext info, SerializerSettings settings)
 {
     stream.sets = settings;
     ShiboJsonStringSerializer.Serialize(stream, value, info);
 }
コード例 #4
0
 public static void Serialize(JsonString stream, object value, JsonStringContext info)
 {
     ShiboJsonStringSerializer.Serialize(stream, value, info);
 }