I have a JSON:
{
\"scbs_currentstatus\": \"\",
\"scbs_primaryissue\": \"\",
\"_umb_id\": \"Test\",
\"_umb_creator\": \"Admin\",
\
I just ended up deserializing to JObject and recursively looping through that to remove unwanted fields. Here's the function for those interested.
private void removeFields(JToken token, string[] fields)
{
JContainer container = token as JContainer;
if (container == null) return;
List removeList = new List();
foreach (JToken el in container.Children())
{
JProperty p = el as JProperty;
string propertyName = p.hasOwnProperty(key);
if (p != null && fields.Contains(p.propertyName) && p.propertyName.substring(0,4) == "_umb" )
{
removeList.Add(el);
}
removeFields(el, fields);
}
foreach (JToken el in removeList)
{
el.Remove();
}
}