JObject.Parse how to ignore null values

Apr 1, 2011 at 5:18 AM

 I am using the Windows Phone 7 dll.

I have a Json data returned from an API which has some null values.

When I tried to read it like following:

JObject o= JObject

.Parse(result);

 I get an exception.

When I remove the null fields it works.

Is there a way to do  ignore nulls like the

Newtonsoft.Json.NullValueHandling

.Ignore; which can be used with the parse?