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); }
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)); }
public static void Serialize(JsonString stream, object value, JsonStringContext info, SerializerSettings settings) { stream.sets = settings; ShiboJsonStringSerializer.Serialize(stream, value, info); }
public static void Serialize(JsonString stream, object value, JsonStringContext info) { ShiboJsonStringSerializer.Serialize(stream, value, info); }