DataSource.NET  7.1.31.142147-b54558a5
Caplin.DataSource.Messaging.JSON.NativeJsonHandler Class Reference

Our NativeJsonHandler class which uses the underlying C DSDK wrapper to handle Diff / Patch Operations. The convertions are handled by the NewtonSoft Json Library. More...

Inheritance diagram for Caplin.DataSource.Messaging.JSON.NativeJsonHandler:
Caplin.DataSource.IJsonHandler

Public Member Functions

object Diff (object source, object target)
 Compare given Json Objects and return a Patch Style Json Object containing the differences More...
 
string Format (object jsonTree)
 Return our Json Object as a Json String with formatting. More...
 
object Parse (string jsonText)
 Parse a valid Json String into an Object Json Type. More...
 
object Patch (object source, object jsonPatch)
 Apply a Json Patch to our source Json Object More...
 
string StringDiff (object source, object target)
 Compare given Json Objects and return a Patch Style Json string containing the differences More...
 
object ToJsonTree (object pojo)
 Convert our Object into a JsonTree Object type More...
 
ToObject< T > (object jsonTree, T userType)
 Convery our JsonTree into an Object of type T More...
 
- Public Member Functions inherited from Caplin.DataSource.IJsonHandler
object Parse (String jsonText)
 
object ToJsonTree (Object pojo)
 

Detailed Description

Our NativeJsonHandler class which uses the underlying C DSDK wrapper to handle Diff / Patch Operations. The convertions are handled by the NewtonSoft Json Library.

Member Function Documentation

object Caplin.DataSource.Messaging.JSON.NativeJsonHandler.Diff ( object  source,
object  target 
)
inline

Compare given Json Objects and return a Patch Style Json Object containing the differences

Parameters
source
target
Returns

Implements Caplin.DataSource.IJsonHandler.

string Caplin.DataSource.Messaging.JSON.NativeJsonHandler.Format ( object  jsonTree)
inline

Return our Json Object as a Json String with formatting.

Parameters
jsonTree
Returns

Implements Caplin.DataSource.IJsonHandler.

object Caplin.DataSource.Messaging.JSON.NativeJsonHandler.Parse ( string  jsonText)
inline

Parse a valid Json String into an Object Json Type.

Parameters
jsonText
Returns
object Caplin.DataSource.Messaging.JSON.NativeJsonHandler.Patch ( object  source,
object  jsonPatch 
)
inline

Apply a Json Patch to our source Json Object

Parameters
source
jsonPatch
Returns

Implements Caplin.DataSource.IJsonHandler.

string Caplin.DataSource.Messaging.JSON.NativeJsonHandler.StringDiff ( object  source,
object  target 
)
inline

Compare given Json Objects and return a Patch Style Json string containing the differences

Parameters
source
target
Returns
object Caplin.DataSource.Messaging.JSON.NativeJsonHandler.ToJsonTree ( object  pojo)
inline

Convert our Object into a JsonTree Object type

Parameters
pojo
Returns
T Caplin.DataSource.Messaging.JSON.NativeJsonHandler.ToObject< T > ( object  jsonTree,
userType 
)
inline

Convery our JsonTree into an Object of type T

Template Parameters
T
Parameters
jsonTree
userType
Returns

Implements Caplin.DataSource.IJsonHandler.


Generated on Fri Jul 7 2023 17:09:44 for DataSource.NET