Combine most rules into one statement, add .json rule