Hi, I have a Liquidsoap script using the of_json function but I can't 
seem to get it to parse the results of a Google Calendar query. My 
script is as follows:

set("log.stdout", true)
set("log.file",false)

startTime = get_process_output("echo -n $(date +%Y-%m-%dT%H:%M:%S)")
endTime = get_process_output("echo -n $(date --date=\"1min\" 
+%Y-%m-%dT%H:%M:%S)")

getShow = 
string.concat(["http://www.google.com/calendar/feeds/xxx@xxx/public/basic?singleEvents=True&sortorder=ascending&start-min=";,
 
startTime, "&start-max=", endTime, "&alt=json"])

json = snd(http.get(getShow))
print(json)

show = of_json(default="Error", json)

print(show)

Why does of_json not recognise the response?

many thanks

James

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to