Closed xperiandri closed 1 year ago
Since version 1.0, the attribute JsonInclude
can be put on the property that should be serialized. Alternately, the option includeRecordProperties
will include all record properties (unless they have the JsonIgnore
attribute). https://github.com/Tarmil/FSharp.SystemTextJson/blob/master/docs/Customizing.md#include-record-properties
I have a type like this
How can I serialize ID property along with others?