Diffusion .NET Client Library  6.1.5
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Data.JSON.IJSONDataType Interface Reference

The JSON data type. More...

Inheritance diagram for PushTechnology.ClientInterface.Data.JSON.IJSONDataType:
PushTechnology.ClientInterface.Data.IDataType< TValue > PushTechnology.ClientInterface.Data.IDataType

Public Member Functions

IJSON FromJSONString (string json)
 Parses a JSON string. More...
 
- Public Member Functions inherited from PushTechnology.ClientInterface.Data.IDataType< TValue >
void WriteValue (TValue value, Stream outputStream)
 Serializes a value to binary. More...
 
new TValue ReadValue (byte[] input, int offset, int length)
 Parses a value from a binary data segment. More...
 
new TValue ReadValue (byte[] input)
 Parses a value from a binary. More...
 
new TValue ReadValue (IBytes bytes)
 Parses a value from binary. More...
 
void Validate (TValue value)
 Checks whether a value is valid. More...
 
IDeltaType< TValue, TDelta > DeltaType< TDelta > ()
 Returns a IDeltaType by type. More...
 
IBytes ToBytes (TValue value)
 Returns the serialized form of the given value as IBytes. More...
 
bool CanReadAs< TResult > ()
 Checks whether this data type is compatible with the given type parameter. More...
 
TResult ReadAs< TResult > (byte[] input, int offset, int length)
 Creates a value of a compatible type from a binary data segment. More...
 
TResult ReadAs< TResult > (byte[] input)
 Creates a value of a compatible type from a binary data segment. More...
 
TResult ReadAs< TResult > (IBytes bytes)
 Creates a value of a compatible type from a binary. More...
 
- Public Member Functions inherited from PushTechnology.ClientInterface.Data.IDataType
void WriteValue (object value, Stream outputStream)
 Serializes a value to binary. More...
 
void Validate (object value)
 Checks whether a value is valid. More...
 
IDeltaType DeltaType (string typeName)
 Returns a IDeltaType by name. More...
 
IDeltaType DeltaType (Type valueDeltaType)
 Returns a IDeltaType by type. More...
 
IBytes ToBytes (object value)
 Returns the serialized form of the given value as IBytes. More...
 
bool CanReadAs (Type resultType)
 Checks whether this data type is compatible with the given resultType . More...
 
object ReadAs (Type resultType, byte[] input, int offset, int length)
 Creates a value of a compatible type from a binary data segment. More...
 
object ReadAs (Type resultType, byte[] input)
 Creates a value of a compatible type from a binary data segment. More...
 
object ReadAs (Type resultType, IBytes bytes)
 Creates a value of a compatible type from binary. More...
 

Properties

IDeltaType< IJSON, IBinaryDeltaBinaryDeltaType [get]
 Returns support for binary deltas. More...
 
- Properties inherited from PushTechnology.ClientInterface.Data.IDataType
string TypeName [get]
 Returns the external type identifier. More...
 

Detailed Description

The JSON data type.

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

The implementation provides support for binary deltas.

See Also
IDataTypes.JSON

.

Since 5.8

Member Function Documentation

IJSON PushTechnology.ClientInterface.Data.JSON.IJSONDataType.FromJSONString ( string  json)

Parses a JSON string.

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

.

Parameters
jsonThe JSON-formatted string to parse.
Returns
The JSON value that represents the given JSON-formatted string.

Property Documentation

IDeltaType<IJSON, IBinaryDelta> PushTechnology.ClientInterface.Data.JSON.IJSONDataType.BinaryDeltaType
get

Returns support for binary deltas.

Equivalent to calling DeltaType(typeof(IBinaryDelta)).


The documentation for this interface was generated from the following file: