zcl_mdp_json icon indicating copy to clipboard operation
zcl_mdp_json copied to clipboard

Valid JSON causes a dump in DESERIALIZE_OBJECT

Open fatihpense opened this issue 4 years ago • 0 comments

I add this issue from Alejandro's comment on the blog post: https://blogs.sap.com/2016/07/03/an-open-source-abap-json-library-zclmdpjson/comment-page-1/#comment-538562


Just found another bug which generates a dump: Escaped double quotes. This JSON is valid, can be checked online in https://jsonformatter.curiousconcept.com/#

{"AreaFunc":"/BDL/BDL3","NumMsj":"050","Texto":"Las entradas en log de mensajes que no son del tipo \"E\" se pueden ignorar"}

However it causes a dump in DESERIALIZE_OBJECT (deserialization operation).

Also, when trying to serialize a string node which has double quotes, they are not escaped.

In both operations, backslash for escaping double quotes should be considered.

fatihpense avatar Nov 28 '20 16:11 fatihpense