How to encode JSON in ABAP before 7.02
问题 As Horst Keller mentioned in his ABAP and JSON post, "with Releases 7.02 and 7.03/7.31 (Kernelpatch 116) JSON is supported natively in ABAP". Appartently 7.02 in my case of too generic because the line below: writer = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ). returns the error: "The field CO_XT_JSON is unknown, but there is a field with the similar name CO_XT_XOP". So is there any way to easily generate JSON? Edit: Screenshot from SAP - Status 回答1: About the class CL_TREX