Adding collision groups to JSON.