function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jordan MilesJordan Miles 

Adding multiple values to text area with REST API (Java)

I'm trying to add multiple values (email addresses) to a Long text area with the REST API. I've noticed that, when I query an object, that text field comes back as

{
   fieldName:"value1/n/rvalue2/n/rvalue3/n/r"
}
I can't really do the literal newline characters in the string, because java will try to treat them as newlines. I can't find any documentation that shows how to do this. How can I post multiple values to Salesforce, making sure each value is on a new line inside the text area?