I am using R with jsonlite
to read in a JSON file like this:
{
"VEVENT": [
{
"DTSTAMP": "20150608T021037Z",
"DTSTART;TZID=America/Los_Angeles": "20150608T173000",
"DTEND;TZID=America/Los_Angeles": "20150608T183000",
"STATUS": "CONFIRMED",
"SUMMARY": "Meeting ABC",
"DESCRIPTION": "Line 1\nLine 2\nLine 3"
}
]
}
Say I have access to the description string as the variable f
, then
writelines(f)
outputs Line 1\nLine 2\nLine 3
. How can I modify f
to output
Line 1
Line 2
Line 3