Fixed problem when times were used with JSON fields