ajson icon indicating copy to clipboard operation
ajson copied to clipboard

Taking `xstring` and `string_table` as input

Open mbtools opened this issue 1 year ago • 2 comments

Currently, the JSON input must be type string. Ajson has to convert it to xstring before calling the SAP SXML class.

If the input is already available as xstring (for example when getting it via abapGit get_local/remote_files), then it would be nice if the conversion to string (and back to xstring) could be skipped for better performance.

It would be nice to take data with type string_table as input as well.

I can do a PR if you like.

mbtools avatar Sep 05 '24 21:09 mbtools

Interesting idea.

whats the use case for string_table by the way ?

sbcgua avatar Sep 06 '24 08:09 sbcgua

You can get a string table

  • if you compose the json manually
  • get data from an editor
  • have a string split by crlf
  • as output of pre-parsing the comments

I might get to it next week.

mbtools avatar Sep 06 '24 13:09 mbtools