I am extracting data from json file using python. Every thing is working however in the case when the data(value) of key is received from multiline input window component of form where the user press enter after every word. I get problem. So when the input is like the following in multiline input field
apple
orange
banana
When I print the value of the key with python using the following code. It print the data as it is like including enters(line breaks). I am looking for input without line break in my extraction
apple orange banana
The code I am using to print is
if item['fruit'][0]:
if 'Other' in item['fruit'][0]:
print (item['fruit'][0]['Other'], end="| ")
else:
print ('NULL', end="| ")
else:
print('NULL', end="| ")