public static void SerializeAndWriteTo(object obj, string path) { var bytes = Serialize(obj); IOUtility.WriteAllBytes(path, bytes); }
public static void WriteAsJson(string path, object obj) { var jsContent = ToJson(obj); IOUtility.WriteAllText(path, jsContent); }