Use modes.json
Fix json formatting.