modes: JSON mode support