@@ -51,24 +51,75 @@ var strXML = objSerializer.GetXMLString('objTest');
51
51
52
52
## Preferences
53
53
- SmartIndent
54
+ Boolean, default false
55
+ If the output is indented by tabs. This preference only applies to the GetXMLString() method.
54
56
- ShowLineBreaks
57
+ Boolean, default false
58
+ If the output contains line breaks.
55
59
- ShowTypes
60
+ Boolean, default false
61
+ If the output contains types. This preference only applies to the GetXMLString() method.
62
+
63
+ ### Preferences Usage
64
+ ```
65
+ objSerializer.Prefs.SmartIndent = true;
66
+ ```
56
67
57
68
## Types
58
69
- UseNull
70
+ Boolean, default true
71
+ If Null properties of the object being serialized are included.
59
72
- UseUndefined
73
+ Boolean, default true
74
+ If Undefined properties of the object being serialized are included.
60
75
- UseArray
76
+ Boolean, default true
77
+ If Array properties of the object being serialized are included.
61
78
- UseObject
79
+ Boolean, default true
80
+ If Object properties of the object being serialized are included.
62
81
- UseBoolean
82
+ Boolean, default true
83
+ If Boolean properties of the object being serialized are included.
63
84
- UseDate
85
+ Boolean, default true
86
+ If Date properties of the object being serialized are included.
64
87
- UseError
88
+ Boolean, default true
89
+ If Error properties of the object being serialized are included.
65
90
- UseFunction
91
+ Boolean, default true
92
+ If Function properties of the object being serialized are included.
66
93
- UseNumber
94
+ Boolean, default true
95
+ If Number properties of the object being serialized are included.
67
96
- UseRegExp
97
+ Boolean, default true
98
+ If RegExp properties of the object being serialized are included.
68
99
- UseString
100
+ Boolean, default true
101
+ If String properties of the object being serialized are included.
69
102
- UseUserDefined
103
+ Boolean, default true
104
+ If user defined Objects that are properties of the object being serialized are included.
70
105
- UseObjectsForUserDefined
106
+ If user defined Objects are declared as their defined type, or if they are serialized as Object properties.
107
+ Boolean, default false
108
+
109
+ ### Types Usage
110
+ ```
111
+ objSerializer.Types.UseNull = false;
112
+ ```
71
113
72
114
## Rules
73
115
- CheckInfiniteLoops
116
+ Boolean, default true
117
+ Check for infinte loops where child properties can reference parent objects, and exclude child properties in this case.
74
118
- MaxDepth
119
+ Integer, default null
120
+ Maximum depth of child properties to serialize. If left as Null then this value is ignored, and no check is performed.
121
+
122
+ ### Rules Usage
123
+ ```
124
+ objSerializer.CheckInfiniteLoops = false;
125
+ ```
0 commit comments