2024-06-07 11:37:53 +02:00
|
|
|
---- Commented out because python and JS add different spaces to their JSON output
|
2024-06-13 18:10:37 +02:00
|
|
|
-- // both SQL style -- and JS/C-style // comments work
|
|
|
|
// print(jsonStringify({'$browser': 'Chrome', '$os': 'Windows' }))
|
|
|
|
// print(jsonStringify({'$browser': 'Chrome', '$os': 'Windows' }, 3))
|
2024-06-07 11:37:53 +02:00
|
|
|
|
2024-06-12 11:46:11 +02:00
|
|
|
print(jsonParse('[1,2,3]'))
|
2024-06-07 11:37:53 +02:00
|
|
|
|
|
|
|
let event := {
|
|
|
|
'event': '$pageview',
|
|
|
|
'properties': {
|
|
|
|
'$browser': 'Chrome',
|
|
|
|
'$os': 'Windows'
|
|
|
|
}
|
2024-06-12 11:46:11 +02:00
|
|
|
}
|
|
|
|
let json := jsonStringify(event)
|
|
|
|
print(jsonParse(json))
|