Looks like the new lines are breaking your json. Maybe add another openai node after perplexity (or use any ai node or code node) and ask to give the output with escape characters so that it doesn’t break jaon formatting. This should ideally solve your issue i hope