DataSource.NET
7.1.29.112283-2b6ad187
|
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) |
object | toObject (object jsonTree, Object 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 |
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 |
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 |
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 |
object Caplin.DataSource.IJsonHandler.toObject | ( | object | jsonTree, |
Object | 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 |