Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to set an attribute to ignore null value json c#

[JsonProperty(NullValueHandling=NullValueHandling.Ignore)]
// or
[JsonProperty("property_name", NullValueHandling=NullValueHandling.Ignore)]

// or for all properties in a class
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #attribute #ignore #null #json
ADD COMMENT
Topic
Name
2+1 =