It is also possible to chain SmartObject method to execute more then one method, this is useful for deserializing nested or complex types items in one method execution. All properties that makes up the object.įor entities with complex types or nested objects the complex type or nested object will be returned as serialized items, the serialized item will need to be deserialized before being displayed and in a case where data is being captured the item should be serialized then passed to the SmartObject as a serialized item. Serialization is essential to transmit the object across the network to cross platforms in a compatible format. Input properties - Serialized array as text. Serialize Add Item To Array: Adds an item to an existing array. Return properties - Serialized array as text. Input properties - Serialized list as text. Serialize List To Array: Takes a generic list and converts it to an array. Return properties - Serialized array as text Input properties: - All properties that makes up the object. Serialize Item To Array: Creates a one item array with the item in it and returns the array as serialized text. Return properties - All items in the array deserialized to the properties that makes them up. Input properties - Serialized array as text. The namespace contains attributes and APIs for advanced scenarios and customization specific to serialization and deserialization. In some cases this could save a deserialize method call. If the items are complex, they are deserialized to the properties that make them up. Return properties - All items in the array as serialized text.ĭeserialize Typed Array: Deserializes an array to deserialized items. Input properties: - Serialized array as text. In some cases this could save a serialize method call. If the items are complex, they are returned as serialized values. Return properties - All properties that make up the object, returned as simple types and nested serialized objects.ĭeserialize Array: Deserializes an array to serialized items. Input properties - Serialized object as text. After the transmission, the recipient has to deserialize the byte strings. Return properties - Serialized object as text.ĭeserialize: Deserializes text to an object. Serialization converts complex objects into byte strings which can be transmitted. The reverse process is called deserialization. Its main purpose is to save the state of an object in order to be able to recreate it when needed. Input properties - All properties that make up the object. Serialization is the process of converting an object into a stream of bytes to store the object or transmit it to memory, a database, or a file. Serialize: Serializes an object into text. Įnum: serialization and deserialization of Enums data types. Simple Type: serialization and deserialization of basic object types.Ĭomplex Type: serialization and deserialization of complex data type objects. When working with serialization the property names for the serialization service objects are. For an example that demonstrates how to use Serialization and Deserialization in SmartObjects, see the video How-To: Create a REST Service Instance and SmartObject.Īlso see the topic Working with Endpoint SmartObjects: Serialization and Deserialization in the User Guide for more information on serialization and deserialization in SmartObjects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |