sbcgua / ajson

Yet another json parser serializer for ABAP
MIT License
49 stars 15 forks source link

to_abap, expose corresponding #162

Closed christianguenter2 closed 1 year ago

christianguenter2 commented 1 year ago

161

sbcgua commented 1 year ago

Hehe, Thanks. I was almost sure this feature is implemented but could not find it. I'm getting old and don't remember my own code :)

May I ask you to add a simple UT to this feature? (it appears, there is one for the local class in fact, but not for the global one). If not, just let me know I'll merge and do it myself, no prob.

I'm also considering adding the corresponding flag as a instance option (to_abap_correspoing ?), to be able to pass the param separately. Though it is more for readability purposes ... and can be done later.

  x = zcl_ajson=>parse( ... )->to_abap_correspoing( abap_true (also the default) ).
  x->to_abap( importing ev_container = yyy ).
christianguenter2 commented 1 year ago

UTs added.