Skip to content

Hythens in variables #4260

Closed Answered by toots
sammypanda asked this question in Q&A
Dec 12, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi! For JSON keys that are not representable as variables, you have the "weird name" as weird_name syntax as documented at https://www.liquidsoap.info/doc-2.3.0/json.html#objects:

let json.parse ({
        subsonic_response
    } : {
        "subsonic-repsonse" as subsonic_response: {
            status: string
            version: string
        }
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sammypanda
Comment options

Answer selected by sammypanda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants