Diffusion .NET API  5.9.24
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Data.JSON.IJSONDataType Interface Reference

Represents a 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...
 
- 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...
 

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

Represents a 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: