DataSource.NET
8.0.3.290770-7760911e
|
Public Member Functions | |
object | Diff (object source, object target) |
String | Format (object jsonTree) |
object | Parse (String jsonText) |
object | Patch (object source, object jsonPatch) |
object | ToJsonTree (Object pojo) |
T | ToObject< T > (object jsonTree, T userType) |
Handler for parsing, patching and serializing Objects to JSON
JsonTreeType the type of the internal tree structure used by the underlying JSON library
object Caplin.DataSource.IJsonHandler.Diff | ( | object | source, |
object | target | ||
) |
Creates a JSON patch of the difference between two JSON tree representations
source | a JSON tree representation of the source object |
target | a JSON tree representation of the target object |
Exception | if the difference operation fails |
Implemented in Caplin.DataSource.Messaging.JSON.NativeJsonHandler.
String Caplin.DataSource.IJsonHandler.Format | ( | object | jsonTree | ) |
Formats a JSON tree representation of an object to a JSON String.
jsonTree | a JSON tree representation of an object |
Exception | if formatting fails |
Implemented in Caplin.DataSource.Messaging.JSON.NativeJsonHandler.
object Caplin.DataSource.IJsonHandler.Parse | ( | String | jsonText | ) |
Parses a JSON text into a JSON tree representation used by the underlying JSON library.
jsonText | the JSON text to parse |
Exception | if the parsing fails |
object Caplin.DataSource.IJsonHandler.Patch | ( | object | source, |
object | jsonPatch | ||
) |
Updates a JSON tree representation with a JSON patch
source | a JSON tree representation of the source object |
jsonPatch | a JSON tree representation of the JSON patch |
Exception | if the patch fails |
Implemented in Caplin.DataSource.Messaging.JSON.NativeJsonHandler.
object Caplin.DataSource.IJsonHandler.ToJsonTree | ( | Object | pojo | ) |
Serializes a plain Java object (POJO) to a JSON tree representation used by the underlying JSON library.
pojo | a plain Java object |
Exception | if conversion fails |
T Caplin.DataSource.IJsonHandler.ToObject< T > | ( | object | jsonTree, |
T | userType | ||
) |
Deserializes a JSON tree representation to a plain Java object
jsonTree | a JSON tree representation of the object |
userType | the type of the object to deserialize into |
Exception | if deserialization fails |
Implemented in Caplin.DataSource.Messaging.JSON.NativeJsonHandler.