DATA: json_ser TYPE REF TO CL_TREX_JSON_SERIALIZER, json_des TYPE REF TO CL_TREX_JSON_DESERIALIZER. DATA: jsonstr TYPE string. CREATE OBJECT json_ser EXPORTING data = itab[]. CALL METHOD json_ser->SERIALIZE. CALL METHOD json_ser->GET_DATA RECEIVING rval = jsonstr.
CREATE OBJECT json_des. CALL METHOD json_des->DESERIALIZE EXPORTING json = jsonstr IMPORTING abap = itab[].
时间: 2024-10-17 01:21:35