diff --git a/Json5/Json5.cs b/Json5/Json5.cs index 00a8f48..a6d7142 100644 --- a/Json5/Json5.cs +++ b/Json5/Json5.cs @@ -50,7 +50,11 @@ public static string Stringify(Json5Value value, Func replacer, string space = null) { - throw new NotImplementedException(); + Func finalReplacer = null; + if (replacer != null) + finalReplacer = (t, k, v) => replacer(k, v); + + return Stringify(value, finalReplacer, space); } public static string Stringify(Json5Value value, Func replacer, int space)