DATA(json_writer) = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ). CALL TRANSFORMATION id SOURCE root = me->ls_2_serialize RESULT XML json_writer OPTIONS DATA_REFS = 'heap-or-create'. DATA(json_xstr) = json_writer->get_output( ). cl_abap_codepage=>convert_from(...
my goal is to encrypt a string in one program using a given password and to save the encrypted result in a file. In another program I will read the encrypted message from that file and decrypt it. I'm using CL_SEC_SXML_WRITER=>ENRCYPT for encryption and CL_SEC_SXML_WRITER=>DECRYPT...
But we would try to do our best. My comment about CL_SXML_WRITER/READER classes was not about using them directly, but encapsulating them in /UI2/CL_JSON class, keeping the API compatible, without any changes needed from the consumer side. It would move actual string maniplating logic fro...