Please enable JavaScript to view this site.

Codolex

Navigation: Activities

Entity conversion

Scroll Prev Top Next More

You can easily create Codolex entities using JSON or Key/value pair or convert Entities to these formats.

 

ConversionPalette

 

Entity to JSON

JSON to entity

 

This activity can be used to convert an entity to a JSON string or to a JSON object. The first return option in this activity is often used to pass an entity from Codolex to another service. To continue working with JSON in other Delphi code, a JSON object can be created. Please note that this instance is no longer managed by Codolex, and that this must be manually freed.

 

Entity to key/value

Key/value to entity

 

An entity can also be converted into a key/value pair. This makes it possible to store the key and value of an instance of an entity in a string or a TStringList. Note that as with the JSON object conversion, it is important to free the TStringList yourself. Codolex only returns the TStringList, and does not manage the TStringList.

 

The other two activities (JSON to entity and key/value to entity) are the opposite of those described above.

 

© by GDK Software