using System;
using System.Text.Json;
using System.Text.Json.Nodes;
public class Program
{
public static void Main()
var jsonObj = JsonSerializer.Deserialize<JsonObject>("{\"Name\":\"Fred\",\"Age\":10,\"RemoveMe\":\"???\"}");
//Console.WriteLine(element.GetProperty("Name").ToString());
//Console.WriteLine(element.GetProperty("Age").ToString());
//Console.WriteLine(element.GetProperty("RemoveMe").ToString());
jsonObj.Remove("RemoveMe");
// element.Remove("RemoveMe");
// string output = element.ToString();
Console.WriteLine(jsonObj);
}