Created
June 22, 2024 22:46
-
-
Save chuchuva/81215b51ba40e7932d47a5dd06612a71 to your computer and use it in GitHub Desktop.
jq query to move Mixpanel properties up one level
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({event:.event} + (.properties | with_entries(.key |= gsub("\\$"; "")))) | |
| .time |= .-36000 | select(.time>=($day|tonumber) and .time<($day|tonumber+86400)) | |
| .time |= todateiso8601 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment