Hi James,

2015-05-05 9:58 GMT-05:00 James Dunn <ja...@4thharmonic.com>:
> 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?

JSON parsing in liquidsoap is limited by the static typing. If you
could provide an example of the JSON data that you're trying to parse
that could help to examine the issue at hand..

Romain

------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to