Code formatting, type juggling from string to int/float for json encoding.