public static string RenameProperty(string json, string propertyName, string newPropertyName) { DFC.JSON.Standard.JsonHelper helper = new DFC.JSON.Standard.JsonHelper(); var obj = JObject.Parse(json); return(helper.SerializeObjectAndRenameIdProperty(obj, propertyName, newPropertyName)); }
public static string ToSerializedObjectArray(List <object> source) { DFC.JSON.Standard.JsonHelper helper = new DFC.JSON.Standard.JsonHelper(); return(JsonConvert.SerializeObject(source)); }