JsonSerializer Class |
Namespace: NetQuarry
The JsonSerializer type exposes the following members.
Name | Description | |
---|---|---|
JsonSerializer |
Constructor.
|
Name | Description | |
---|---|---|
Add(String, StringCollection) |
Add a StringCollection to the object as a string array.
| |
Add(String, Enum) |
Add an enum property to the object converting the enum value to an int.
| |
Add(String, Int32) |
Add an int property to the object.
| |
Add(String, String) |
Add a string property to the object.
| |
Add(String, String) |
Add a string array property to the object.
| |
Add(String, Boolean, Boolean) |
Add a boolean property to the object converting the bool value to javascript true/false keywords
or 1/0 integers depending on the value of asOneOrZero.
The default is true/false.
| |
AddHtml |
Add a block of HTML as a property of the object. Note that HTML requires
special escaping including removal of CR and LF characters. Such escaping
is performed by this method and the call should NOT so escape the HTML.
| |
Equals | (Inherited from Object.) | |
Error |
Create and populate a standard platform JSON error object of type "error".
| |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Generate the javascript expression defining the JSON object.
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |