Skip to content

Instantly share code, notes, and snippets.

@chuchuva
Created June 22, 2024 22:46
Show Gist options
  • Save chuchuva/81215b51ba40e7932d47a5dd06612a71 to your computer and use it in GitHub Desktop.
Save chuchuva/81215b51ba40e7932d47a5dd06612a71 to your computer and use it in GitHub Desktop.
jq query to move Mixpanel properties up one level
({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