json variables to snake_case