May I know, what is the easier way to extract the URL out from the JSON result?
Example From:
text:https://www.facebook.com/121790674546188_5691115404280326|AsiaOne\n\nAnalysts are already forecasting property price increases of up to 3% for some of these areas with the announcement. By the time the stations are completed in 2032, they estimate a 5-15% increase.
As a quick solution you could use .split() and split on the | so you would have something like {{ $json["text"].split('|')[0] }} which would return the URL and if you used {{ $json["text"].split('|')[1] }} you would get the rest of the data.
Hi Jon, I am trying to retain this part of the message. Been trying to play around with the code… but not be able to get any closer or success. Any advice?
Try {{ $json["attachments"][0]["text"].split('\n\n')[1] }}, With that data we can split on the new line characters. That will then get you something like this