List of String to String with line break

HI ,

I have a requirement where I need to pass Sting values with separate Line to API .

here is the  List of Sting with 4 items.

“28978937982932090”

“28978937982932091”

“28978937982932092”

“28978937982932093”

I want to send it as single string with line break to API 

“28978937982932090

28978937982932090

28978937982932090

28978937982932090”

Can you help me with this scenario.

Thanks in advance

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Mathieu Drouin

    A delimiter would work too, though I've done this before and you quickly run into the issue of having to build your own parser and potential corner cases (though for "list of integer as string" the corner cases are admittedly few), while JSON should automatically that, which is why I default to suggesting JSON before other approaches (noting, of course, that neither is "wrong" per se).

Children