Solved
Forum Discussion
7 Replies
- nchrkNew Contributor II
i changed expression as below, it’s working
JsonStr.toString().replaceAll(‘\n’,‘’).replaceAll(’ ‘,’') - nchrkNew Contributor II
expression failing when input string contains blanks or null values using this expression “JsonStr.toString().replaceAll(‘\n’,‘’).replaceAll(’ ‘,’')”
any suggestions how to resolve this when we receive blank/null values?
- Abhishek_Soni37Contributor
Can you share example of input data(with blank/ null values)
- nchrkNew Contributor II
- input value JsonStr := [\n “AC”\n]
expected output := [“AC”] - input value JsonStr := [\n “AC”,\n “BD”,\n “DE” \n]
expected output := [“AC”,“BD”,“DE”] - input value JsonStr := null
expected output := null
- input value JsonStr := [\n “AC”\n]