❔ Newtonsoft, count nested properties
Some time ago I had a nice chat in here where we found a solution to a problem. Namely counting all properties in a given JSON data structure. Now I want to extend on this, and count only the properties that have an empty value, (or the other way around, only the properties that NOT have an empty value) but I'm not sure how to alter the function we created in an earlier topic to accomodate for this.
This was the original "Count all properties" method:
How would I alter this method so it counts only the props that are either empty or not empty (can be two methods if need be)
1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.