Code: Alles auswählen.
TYPES: BEGIN OF ty_val,
val TYPE string,
END OF ty_val.
TYPES: BEGIN OF ty_values,
value TYPE ty_val,
time TYPE ty_val,
valuetype TYPE ty_val,
END OF ty_values.
DATA lv_json TYPE string VALUE '{"value":{"0.VALUE1.VAR0":1.55555616E8},"time":{"0.VALUE1.VAR0":1543998498247000000},"valueType":{}}'.
DATA lt_map TYPE /ui2/cl_json=>name_mappings.
DATA ls_map LIKE LINE OF lt_map.
DATA ls_test TYPE ty_values.
* den Key mappen
ls_map-abap = 'VAL'.
ls_map-json = '0.VALUE1.VAR0'.
INSERT ls_map INTO TABLE lt_map.
/ui2/cl_json=>deserialize(
EXPORTING
json = lv_json
name_mappings = lt_map
CHANGING
data = ls_test ).