Skip to content

Instantly share code, notes, and snippets.

@StormyCube
StormyCube / JObjectExtensions.cs
Created June 25, 2020 16:10
Removes property from root object and all nested objects, recursively
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace YourProject.Extensions
{
public static class JObjectExtensions
{
/// <summary>
/// Removes Recursively all keys named as the property argument
/// </summary>