Deserializing a Categories Document
Procedure
The deserialization (e.g. on ATOM client side) is using class CL_APP_CATEGORIES_PROV to store the categories' data in structure IF_ATOM_TYPES=>ENTRY_S. The following code fragment makes use of a REST response entity typed IF_REST_ENTITY.
data:
lo_entity type ref to if_rest_entity,
ls_entry type if_app_types=>categories_s,
lo_category_prov type ref to cl_app_categories_prov.
...
create object lo_category_prov
exporting
io_entity = lo_entity.
lo_entry_prov->get_entry( importing es_entry = ls_entry ).
* process categories structure
...