Optional flags allow to convert python NaN to null in JSON writer