Interface IJSONDataType

The JSON data type.

Inherited Members
IDataType<IJSON>.WriteValue(IJSON, Stream)
IDataType<IJSON>.ReadValue(Byte[], Int32, Int32)
IDataType<IJSON>.ReadValue(Byte[])
IDataType<IJSON>.ReadValue(IBytes)
IDataType<IJSON>.Validate(IJSON)
IDataType<IJSON>.DeltaType<TDelta>()
IDataType<IJSON>.ToBytes(IJSON)
IDataType<IJSON>.CanReadAs<TResult>()
IDataType<IJSON>.ReadAs<TResult>(Byte[], Int32, Int32)
IDataType<IJSON>.ReadAs<TResult>(Byte[])
IDataType<IJSON>.ReadAs<TResult>(IBytes)
IDataType.TypeName
IDataType.WriteValue(Object, Stream)
IDataType.Validate(Object)
IDataType.DeltaType(String)
IDataType.DeltaType(Type)
IDataType.ToBytes(Object)
IDataType.CanReadAs(Type)
IDataType.ReadAs(Type, Byte[], Int32, Int32)
IDataType.ReadAs(Type, Byte[])
IDataType.ReadAs(Type, IBytes)
Namespace: PushTechnology.ClientInterface.Data.JSON
Assembly: Diffusion.Client.dll
Syntax
public interface IJSONDataType : IDataType<IJSON>, IDataType
Remarks

For efficiency, the JSON value is serialized in binary form following the CBOR specification.

The implementation provides support for binary deltas.

JSON.

Since 5.8

Properties

BinaryDeltaType

Returns support for binary deltas.

Declaration
IDeltaType<IJSON, IBinaryDelta> BinaryDeltaType { get; }
Property Value
Type Description
IDeltaType<IJSON, IBinaryDelta>

Support for binary deltas.

Remarks

Equivalent to calling DeltaType(typeof(IBinaryDelta)).

Methods

FromJSONString(String)

Parses a JSON string.

Declaration
IJSON FromJSONString(string json)
Parameters
Type Name Description
System.String json

The JSON-formatted string to parse.

Returns
Type Description
IJSON

The JSON value that represents the given JSON-formatted string.

Remarks

Precision for numeric types is lost in the translation to the internal CBOR binary form and non-significant white space is not preserved. It is not guaranteed that FromJSONString(json).ToJSONString() equals json.

Back to top