Reading JSON file with Liquidsoap -
I want to create many liquid sources with the same script but the name of the example station with some variables.
I have seen that I can include config.liq, for example, but it would be nice if I can read some configuration parameters that are not related to the language, such as in JSON LiquidSap There is a of_json
function, but it is not clear how I can read the JSON file instead of the JSON string.
What can I do to create a configuration file that is not associated with the scripting language?
Good question I do not have the exact code for you, but I actually shot the curl with HTTP I am able to read. (And then, I get the built-in function for HTTP requests, but they do not apply to your case which I do not think.)
If you can not find any command to read a file, To dump just use with call at cat
.
Comments
Post a Comment