Class JSONSerializer
  Serializer fo reading/writing objects to CSV files.
 
  
  
    Inheritance
    
    JSONSerializer
   
  
  
  
  Assembly: WMServer.dll
  Syntax
  
    public class JSONSerializer : ISerializer
   
  Constructors
  
  JSONSerializer(string?)
  Create a new instance of a JSONSerializer and optionally set the filename.
 
  
  Declaration
  
    public JSONSerializer(string? connection = null)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | string | 
        connection | 
        The file name (relative or absolute) from/to which data will be read/written 
 | 
      
    
  
  Properties
  
  Connection
  JSON file name to read from / write to.
 
  
  Declaration
  
    public string? Connection { get; set; }
   
  Property Value
  
  
  DataSource
  No internal persistent data source is used. Returns a reference to this object.
 
  
  Declaration
  
    public object DataSource { get; }
   
  Property Value
  
  Methods
  
  Close()
  Does nothing.  JSON read/write operations are atomic so Open() and Close()
are not required.
 
  
  Declaration
  
  Exceptions
  
  
  DeserializeObjects<T>(Func<T, bool>)
  Deserialzes an object, or collection of objects. If the filter condition is supplied,
only the objects where the filter condition is true are returned.
 
  
  Declaration
  
    public List<T> DeserializeObjects<T>(Func<T, bool> filter)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Func<T, bool> | 
        filter | 
         | 
      
    
  
  Returns
  
  Type Parameters
  
  Exceptions
  
  
  Open()
  Does nothing.  JSON read/write operations are atomic so Open() and Close()
are not required.
 
  
  Declaration
  
  Exceptions
  
  
  SerializeObject(object, SerializationParams?)
  Serialize the specified oject in JSON format, and write them to the
location specified in the Connection property.
 
  
  Declaration
  
    public void SerializeObject(object srzObj, SerializationParams? srzParams = null)
   
  Parameters
  
  
  SerializeObjects(IEnumerable<object>, SerializationParams?)
  Serialize the specified collection of ojects to CSV format, and write them to the
location specified in the Connection property.
 
  
  Declaration
  
    public void SerializeObjects(IEnumerable<object> srzObjs, SerializationParams? srzParams = null)
   
  Parameters
  
  Implements