commit for conditional json