Forum Discussion
jmousavi
6 years agoNew Contributor
I have tried both suggestions, but I am still having issues with Snaplogic recognizing new lines. Since I am making an Ultra task, I am no longer able to use the Fixed Width Formatter.
Here is an example of the content of the file I am getting from github:
{
object : {
source_1 : “website”,
source_2: “website”
}
}
After the getting the content from the Rest GET, this is what it looks like:
{\n object : {\n source_1 : “website”,\n source_2: “website”\n }\n}
I have also tried using the Json Formatter, but it still doesn’t recognize the \n as a new line, puts everything inside [ ], and also has quotes around the keys.
skatpally
5 years agoFormer Employee
Can you parse the JSON?
JSON.parse(‘{\n object : {\n source_1 : “website”,\n source_2: “website”\n }\n}’)