ASP.NET Core MVC Controls | ComponentOne
C1.JsonNet Namespace / JsonConverter Class / ReadJson Method
The JsonReader to read from.
Type of the object.
The existing value of object being read.






In This Topic
    ReadJson Method (JsonConverter)
    In This Topic
    Reads the JSON representation of the object.
    Syntax
    'Declaration
     
    
    Protected Overridable Function ReadJson( _
       ByVal reader As JsonReader, _
       ByVal objectType As System.Type, _
       ByVal existedValue As System.Object _
    ) As System.Object
    'Usage
     
    
    Dim instance As JsonConverter
    Dim reader As JsonReader
    Dim objectType As System.Type
    Dim existedValue As System.Object
    Dim value As System.Object
     
    value = instance.ReadJson(reader, objectType, existedValue)
    protected virtual System.object ReadJson( 
       JsonReader reader,
       System.Type objectType,
       System.object existedValue
    )
    protected function ReadJson( 
        reader: JsonReader;
        objectType: System.Type;
        existedValue: System.TObject
    ): System.TObject; virtual; 
    protected function ReadJson( 
       reader : JsonReader,
       objectType : System.Type,
       existedValue : System.Object
    ) : System.Object;
    protected: virtual System.Object* ReadJson( 
       JsonReader* reader,
       System.Type* objectType,
       System.Object* existedValue
    ) 
    protected:
    virtual System.Object^ ReadJson( 
       JsonReader^ reader,
       System.Type^ objectType,
       System.Object^ existedValue
    ) 

    Parameters

    reader
    The JsonReader to read from.
    objectType
    Type of the object.
    existedValue
    The existing value of object being read.

    Return Value

    The object value after deserializing.
    See Also