Namespace: Consultingwerk
Class 
NativeJsonSerializable Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.ISerializable
SERIALIZABLE

File:NativeJsonSerializable
Purpose:JSON Serializable implementation that relies on the AVM
built in JSON Serialization (OpenEdge 11.6 and above)
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Jul 02 14:18:37 CEST 2017
Notes:SCL-1817
This implementation relies on the OpenEdge.Core.ByteBucket
Due to issues with the OpenEdge 11.6 implementation of that
class, we're using the OpenEdge 11.7 based implementation
also on OpenEdge 11.6.3 in the package OpenEdge.Core117
This implementation does not support the Deserialize method.
Purpose: Returns an LONGCHAR (JSON) representation of the
object instance
d * Notes:



Top Method Summary
Options Name Purpose
+ Consultingwerk.NativeJsonSerializable Deserialize (JsonObject, character) Deserializes the given JSON without type information into a NativeSerializable object
+ Deserialize (longchar) Not supported
+ Consultingwerk.NativeJsonSerializable Deserialize (longchar, character) Deserializes the given JSON without type information into a NativeSerializable object
+ LONGCHAR Serialize () Returns an LONGCHAR (JSON) representation of the object instance d * Notes: @return The LONGCHAR representation of the ISerializable objects data */
+ Progress.Json.ObjectModel.JsonObject ToSimpleJsonObject () Returns a simple JSON object


Method Detail
Top

PUBLIC Consultingwerk.NativeJsonSerializable Deserialize (JsonObject, character)

Purpose: Deserializes the given JSON without type information into a NativeSerializable
object
Notes: Adds the type-information to the JSON before passing it to the Deserialization routine

Parameters:
poJsonData Progress.Json.ObjectModel.JsonObject
The JSON Object with the data
pcTypeName CHARACTER
The class name to add to the JSON
Returns Consultingwerk.NativeJsonSerializable
The deserialized object instance
Top

PUBLIC Deserialize (longchar)

Purpose: Not supported
Notes:

Parameters:
pcSerializedReprasentation LONGCHAR
The stored LONGCHAR representation of the objects data
Top

PUBLIC Consultingwerk.NativeJsonSerializable Deserialize (longchar, character)

Purpose: Deserializes the given JSON without type information into a NativeSerializable
object
Notes: Adds the type-information to the JSON before passing it to the Deserialization routine

Parameters:
plcJsonData LONGCHAR
The LONGCHAR with the Json data
pcTypeName CHARACTER
The class name to inject into the serialized json
Returns Consultingwerk.NativeJsonSerializable
The deserialized object instance
Top

PUBLIC LONGCHAR Serialize ()

Purpose: Returns an LONGCHAR (JSON) representation of the
object instance
d * Notes:

Returns LONGCHAR
The LONGCHAR representation of the ISerializable objects data
Top

PUBLIC Progress.Json.ObjectModel.JsonObject ToSimpleJsonObject ()

Purpose: Returns a simple JSON object
Notes: Does not include Envelope added by the JsonSerializer

Returns Progress.Json.ObjectModel.JsonObject
The JsonObject


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 05:52:01