How do you remove a nested element from a json string using system.text.json C#
I have a json string that has nested values: { "card": { "number": "411111111111111111", "expirationMonth": null, "expirationYear": null, "securityCode": null } } I want to remove expirationMonth, expirationYear, securityCode so that only card: number remain. but I can't find any…