0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:17:50 +01:00
posthog/hogvm/__tests__/json.hog
2024-06-07 11:37:53 +02:00

16 lines
436 B
Plaintext

---- Commented out because python and JS add different spaces to their JSON output
-- 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));