@midee
You could use a routeOnContent [1]processor to accomplish this. You would create a Java regex that matches only on customfield(s) where there is a string wrapped in quotes. If found, it routes entire FlowFile to the relationship created using the dynamic property's name.
RouteOnContent configuration:

I noticed in you example you have two customfield entries that do not have "null"
"customfield_10001": "This is required value",
"customfield_10002": "",
Based on my regex provided above, both of these would match resulting in FlowFile being routed to the "NotNull" relationship.
If i were to change the second .*? to .+? , then the customfield that contained only quotes would not match (just in case you only want to route when it is not null and not empty.
"customfield_.+?": ".*?",
versus
"customfield_.+?": ".+?",
If you found this addressed your query, please take a moment to login and click "accept" on this solution.
Thank you,
Matt