0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/hogvm/__tests__/json.hog

17 lines
486 B
Plaintext
Raw Normal View History

---- Commented out because python and JS add different spaces to their JSON output
-- // both SQL style -- and JS/C-style // comments work
// print(jsonStringify({'$browser': 'Chrome', '$os': 'Windows' }))
// print(jsonStringify({'$browser': 'Chrome', '$os': 'Windows' }, 3))
print(jsonParse('[1,2,3]'))
let event := {
'event': '$pageview',
'properties': {
'$browser': 'Chrome',
'$os': 'Windows'
}
}
let json := jsonStringify(event)
print(jsonParse(json))